Timeline for Selenium WebDriver - how to cleanly code with PageObjects in combination with By locators?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 15, 2014 at 5:13 | vote | accept | FDM | ||
Oct 14, 2014 at 22:00 | answer | added | Slava Klevchenia | timeline score: 0 | |
Oct 14, 2014 at 16:57 | comment | added | thebeekeeper | I think what you're trying to do goes against the page object pattern, at least as I understand it. Locating controls in your tests is not something you want to do if you're trying to use page object. I'm not certain how you would accomplish #1 in Java, but for #2 you should be able to use IWebElement.Displayed | |
Oct 14, 2014 at 13:04 | comment | added | Vince Bowdren |
Are you sure you need to extract these locator values? If you need to find a dynamic element in the same containing DIV, you can declare the DIV itself as a WebElement and use the WebElement's findElement() method. If you need to determine if an element exists, just call the WebElement's isDisplayed() method.
|
|
Oct 14, 2014 at 12:25 | review | First posts | |||
Oct 14, 2014 at 15:59 | |||||
Oct 14, 2014 at 12:12 | history | asked | FDM | CC BY-SA 3.0 |