Tag Info

New answers tagged

0

Here's how I'm doing it in VB with FirefoxDriver. I created a wrapper for the webdrivers, but without a wrapper it looks something like this. IWebDriver has two handle controls; CurrentWindowHandle and a collection of WindowHandles. The handles in WindowHandles are in the order in which they were created, so getting the last handle in the list gets the ...


0

There is also the long option which uses selenium's element displayed functionality. W3C specifications for element displayed Python example: from selenium import webdriver b = webdriver.Chome() b.get('https://google.com') els = b.find_elements_by_css_selector('*') hidden_els = [el for el in els if not el.is_displayed()] print(hidden_els) b.quit()


0

I like to use below format to avoid quotes errors WebElement element= driver.findElement(By.xpath("//div[@class='btnContr']/input[@value='Cancel']")); JavascriptExecutor executor = (JavascriptExecutor) driver; executor.executeScript("arguments[0].click();", element); Hope it will help you :)


0

I first took the the above data in a string. then i used the regex to extract the "data":["1320649","1301971","1312053","0","0","0","0"]}] part. After this i again used the regex to extract the numbers only and so on and so forth. It was tedious but it worked good. I took regex according so that on any day if the string changes some how my code should ...


-2

weather GUI and slkuli are open soure


0

I know this post is a few years old but I wanted to bring up another option. My company bought a copy of the ruby version of The Selenium GuideBook by Dave Haeffner, who also does the Elemental Selenium Tips newsletter. The book costs about $60 but is very much worth it. I've gone through the book a few times, using the code examples and I love it. Got me ...


0

I recommend Selenium Design Patterns and Best Practices. Great book for learning Selenium and Ruby, and what is even more important for learning best test automation practices along the way.


0

For Working on Selenium WebDriver with Java , you can focus on below Java concept and other related stuff, I am just giving you bigger picture. Java Basics (oops concept & programming concept) Java Collection Framework Java FileOperations (using apache POI or Jexcel) , ExceptionHandling , logger would be plus point. Junit or TestNG to start with unit ...


0

The level of Java knowledge depends on what you want to do with Selenium. You may just want to write some simple test automation scripts in which case basic Java knowledge is sufficient. If you want to make your test automation code re-usable, then object oriented programming concepts are important. If you want to create a framework, then learn advanced ...



Top 50 recent answers are included