Tags » WebDriver

How to verify an element is visible or not visible using selenium webdriver


public String checkElement(WebDriver driver,By by ){
if (driver.findElements(by).size() < 1){
System.out.println("Test is Passed");

return “Pass”;

}else {
System.out.println(“Test is failed”);
return “Fail”;
}
}


System.out.println(checkElement(driver, By.xpath("//button[@id='gbqfba']")));;

Handle Java warning popup in selenium webdriver

FirefoxProfile fProfile = new FirefoxProfile();

fProfile.setAcceptUntrustedCertificates( true );

fProfile.setPreference( "security.enable_java", true ); 

fProfile.setPreference( "plugin.state.java", 2 );

WebDriver driver = new FirefoxDriver( fProfile );

plugin.state.java = 0 never activate, 1 = ask to activate, 2 = always activate

Selenium

sikuli selenium webdriver testng testing with eclipse in windows

- Download sikuli-setup.jar from

http://www.sikuli.org/download.html

- Copy to a folder
– Double click on the jar file or run it from command prompt (make sure you have java installed 6/7), follow the instructions. 229 more words

Selenium

Launching Safari browser through Selenium Webdriver on Windows

Had a tough time searching steps to launch Safari browser through Selenium Webdriver. So compiling the steps for easy use and access.

Some Information for starting: 156 more words

Python + WebDriver: Explicit vs Implicit Waits

Selenium Webdriver provides two types of waits – implicit & explicit. An explicit wait makes WebDriver to wait for a certain condition to occur before proceeding further with executions. 197 more words

Python

How to hover any Element using Selenium Webdriver

In many applications, we may find a situation where we need to just hover any element and click to its sub-menu or sub-link associated with it. 138 more words

Webdriver

Browser applications testing using Selenium with Python

Selenium:

Selenium is a web application testing framework¬†that allows you to write tests in many programming languages like ¬†Java, C#, Groovy, … 872 more words

Python-Language