Tag Info

New answers tagged

0

I'm using (when it is needs) mix of [FindsBy] and "complex" elements (defined as such "dummy example") protected string someVariable= "someXPath_part"; someVariable + "[" + number.ToString() + "]" As beekeeper said, driver.FindElement(By.Locator()) and locator, defined by [FindsBy] are equial, so if you need to check existing/enabling of element, just use ...


1

Sometimes it so happens that the wait commands do not work. Instead of the wait command of selenium try using Thread.sleep(); command of java. This command will pause execution of the script for the given time...


3

PageObjects The code of automated test cases should be easy to understand and not too complex. If a test fails, we want to know why and this as soon as possible. To allow this exists PageObjects. PageObjects are classes that contains WebElements and every actions associated with those. A PageObject looks like this: class HomePage { WebDriver driver; ...



Top 50 recent answers are included