Webdriver是否支持Python的pagefactory?

hou*_*ack 7 python webdriver pageobjects

我正在阅读Webdriver项目网站上的页面对象和设计模式,并遇到了pagefactory.它看起来不像Python API的Webdriver包含pagefactory.这是真的?

n1r*_*1r3 5

我认为在Python中没有任何Java注释(@Find(By.xxx)等)的等价物.但这并不意味着您不能使用PageObject模式.

你可以在这里找到如何做的好例子:https://github.com/SeleniumHQ/selenium/blob/master/py/test/selenium/webdriver/common/google_one_box.py

  • 该链接已更改为https://code.google.com/p/selenium/source/browse/py/test/selenium/webdriver/common/google_one_box.py (4认同)