Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Webdriver support pagefactory for Python?

I was reading about page objects and design patterns on the Webdriver project site and came across pagefactory. It doesn't look like the Webdriver for Python API includes pagefactory. Is this true?

like image 541
hourback Avatar asked Dec 12 '11 03:12

hourback


1 Answers

I don't think there is any equivalents of the Java annotations (@Find(By.xxx) etc) in Python. But it doesn't mean that you can't use the PageObject pattern.

You can find good example on how to do here : https://github.com/SeleniumHQ/selenium/blob/master/py/test/selenium/webdriver/common/google_one_box.py

like image 55
n1r3 Avatar answered Sep 22 '22 05:09

n1r3