Tag Info

New answers tagged

1

If you want every dropdown value in a List, try using this: WebElement select = driver.findElement(By.id("selection")); List<WebElement> options = select.findElements(By.tagName("option")); for (WebElement option : options) { // actions on every option, like extracting the value } Alternatively, convert your WebElement el ...


1

Start by looking for testing tasks that require a lot of manual effort and do not change from one release to the next. This is especially important for UI automation; if a web page changes frequently, you will spend so much time updating your automated test that it will have been faster to test the page by hand. Note that there are often ways to use ...


1

I managed to get around this issue by creating a static method that scrolls down the page: public class Browser { public static IWebDriver Driver { get; set; } public static ITargetLocator CurrentFrame { get; private set; } public static void SwitchFrame(string frameId) { CurrentFrame = Driver.SwitchTo(); ...


1

To broadly address your question, just pick some test cases with simple interactions that aren't very dynamic and automate those. Trial, error, and practice will get you there. Is Java mostly used for Selenium tests? Do you recommend it over C#? According to StackOverflow, there are more Selenium tagged questions in Java than any other language (as of ...



Top 50 recent answers are included