Tag Info

Hot answers tagged

1

I believe you are actually getting all the links from the page I think what you are seeing is that when you go to print them out you are getting the String representation of the List collection. To actually see each of the links you need to iterate through the list. public static void main(String[] args){ WebDriver driver = new FirefoxDriver(); ...


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

You need the SafariDriver extension for your Safari browser and you have to set two system properties: webdriver.safari.driver - Location of the Safari browser extension file webdriver.safari.noinstall - Set to true, if the extension already installed; else false. Links: SafariDriver - Selenium Wiki SafariDriverInternals - Selenium Wiki



Only top voted, non community-wiki answers of a minimum length are eligible