Tag Info

New answers tagged

0

Check my reply to this question on how to loop through all values in a dropdown list. That's C# code but you'll get the idea.


0

Try using Webdriver Advanced User Interaction to click the 'Save' button. I had sort of same issue and i resolved it using Advanced User Interactions. You can find all the help you want regarding Advanced User Interactions in the link below. https://code.google.com/p/selenium/wiki/AdvancedUserInteractions Let me know if it helps.


0

I faced the same issue using TestNG. I had used @BeforeMethod and for each method new browser is opened. When I changed it to @BeforeTest instead of @BeforeMethod, that worked for me.


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"); ...


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