Tag Info

New answers tagged

0

There should be lot of links as result so you must put loop when getting result , See update code below : public static void main(String[] args){ WebDriver driver = new FirefoxDriver(); //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.get("http://www.digit.in"); java.util.List<WebElement> links = ...


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 ...


0

For Firefox this works: var profile = new FirefoxProfile(); profile.SetPreference("network.http.phishy-userpass-length", 255); profile.SetPreference("network.automatic-ntlm-auth.trusted-uris", ".companyname.com"); DesiredCapabilities capability = DesiredCapabilities.Firefox(); capability.SetCapability(CapabilityType.Platform, "WINDOWS"); ...


0

Because you're opening a new tab in your browser, you can follow this pattern. Once the tab is opened, make Selenium switch its focus to it. If you don't know how, this question has got several answers here or elsewhere. Apparently, Firefox puts the file content in a <pre> tag so you have a valid HTML document. So it's easy to use driver.findElement ...


0

Disclaimer: First, I am affiliated with the tool suggested below. Because we did not like the tools options 10 years ago, when we started our business (too expensive or too little features or just difficult to use), we wrote our own tool. Later, we started to offer it as product as well, after customers ask for an option to purchase it. It is Java based ...


0

Consider hybridizing your testing framework to use both codedui and selenium webdriver components. CodedUI automates well with most windows. Selenium WebDriver automation works well with most browsers except IE11 on Windows 8.1. In windows 8.1 IE 11 does not delegate the session ID to selenium WebDriver.


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


0

ok. I was able to solve this issue using AutoIT with Selenium. Using webdriver, I clicked on Upload File link and opened the Windows File Browsers(to select the image), then I ran the AutoIT script using Java Runtime to enter the file path and click on Select button. And it worked. Thankyou all. Closing this question...


0

I don't know if I understand your problem right but I think the problem is in interacting with OS (the browser window) and to solve this it will be better to use sikuli as it deals with the elements displayed on the screen by providing images


0

It seems like you should be able to do this using selenium to fill out the form, click on "upload files" and then click on "drop files here to upload". Then you have the issue of interacting with the OS. You should be able to find some tutorials for that. See http://stackoverflow.com/questions/10322501/how-do-i-interact-with-windows-programs for example.


0

Try using something as follows :- WebDriverWait wait = new WebDriverWait(driver, 60);// 1 minute wait.until(ExpectedConditions.visibilityOfElementLocated(By.name("Username"))); driver.findElement(By.name("Username")).sendKeys("selenium");


0

I am afraid, as far as I know, it is not possible to handle file-uploads with selenium due to security issues. I encountered this issue myself and searched the web for a solution but did not find anything except that it is not possible. Regards, Markus.



Top 50 recent answers are included