--You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Hi Bryan,
I have just started to using your pageobject-library. It seems that I can use it on my new web tests.
I have a couple of questions about usage and mixins, thanks in advance.
My SUT is like a normal dashboard (main navigation items on the left side and some basic stuffs on the header (logout etc.) )
- Is it feasible to add mixin for the left navigation bar completely or divide them one mixin per navigation item ?
- While using mixins do I have to import that at the top of page object ?
On Monday, 23 May 2016 05:23:16 UTC+3, Bryan Oakley wrote:I've just made available a beta release of a new, lightweight page object library.More information is available at the following locations:
- blog post: https://agiletoolsmith.wordpress.com/2016/05/22/robot-framework-page-objects/
- git repository: https://github.com/boakley/robotframework-pageobjectlibrary
- pypi: https://pypi.python.org/pypi/robotframework-pageobjectlibrary
- brief tutorial: https://github.com/boakley/robotframework-pageobjectlibrary/wiki/Tutorial
Why another page object library?There is already a page object library for robot [1] which I used at a previous employer with great success. However, the package was abandoned by the original author, and I found it to be more complex than it needed to be. This new library is 1/4 the size, weighing in at only 400 or so lines of code and comments -- small enough for anyone to be able to dig in and understand the implementation.Comments and bug reports would be appreciated!--Bryan Oakley
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
--
from selenium.webdriver import ActionChains
brand_dropdown=self.driver.find_element_by_xpath('//*[@id="main"]/div[2]/div/div/form/div[3]/div/div/div/div/div[1]')
ActionChains(browser).move_to_element(brand_dropdown).click().send_keys(brand).send_keys(Keys.ENTER).perform()
self.browser
--
from selenium.webdriver.common.keys import Keys
--
_locators: {"dropdown_xpath": "//*[@id='main']/div[2]"}...element = self.browser.find_element_by_xpath(self.locators.dropdown_xpath)
--