Tag Info

Hot answers tagged

2

Basically you can use explicit wait to wait until your specific element of page get visible. There are 2 types of wait : 1 - Implicit wait 2 - Explicit wait Examples are given below : Implicit wait Syntax : driver.manage().timeouts().implicitlyWait(time period, TimeUnit.SECONDS); Explicit wait Syntax : WebDriverWait wait = new ...


1

I believe that you should uncheck "Install Maintenance Service" box during Firefox installation, in that case you should be protected from automatic updates. Also avoid opening "About Firefox" window as Firefox is known to update itself when you open it. In regards to what version of Firefox is supported, as per Using Selenium with JMeter's WebDriver ...


1

The logical guess would be checking the element property: bool isDisplayed = driver.findElement(By.XPath("//span[text()='Show']").isDisplayed; Should this not work (because you're using the CSS width instead of CSS display), try: String s = driver.findElement(By.XPath("//span[text()='Show']").getAttribute("style"); if(s.Contains("100%")) { // the show ...


1

I was able to answer my own question, Please see script below: urlTextBox = "url" dropdownOption = "location" submitBtn = ".//*[@id='start_test-container']/p/input" homeBtn = ".//*[@id='nav']/li[1]/a" webTeamPage = "personalwebpage.com" select = driver.find_element_by_id(dropdownOption) #get the ...


1

I have the same issue and have yet to find an answer. As a workaround you can use a loop and: searchBox.SendKeys(Keys.Backspace);



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