Thursday 25 February 2016

How to select dropdown values and show a multiple types of operations.

Drop-down values multiple types of selections 



country list


. Dropdown seletion there are multiple type of code in selenium webdriver 


 new select(driver.findelement(By.xpath("//select[@name='country']"))).selectByVisibleText("india");

(or)

webelement country = driver.findElement (By.xpath("//select[@name='country']"));

select  countryname = new select (country);

countryname.selectByVisibleText("india"); 

  (or)

Select country = new  Select(driver.findElement (By.xpath("//select[@name='country']")));

country.selectByVisibleText("india");

 







.  Dropdowns values you can select the required in 3 ways. consider an HTML file 
. In webdriver support SELECT tag , SELECT is a class it is a perform multiple task on dropdowns and  multiple select object.


new Select(driver.findElement(By.name("country"))).selectByVisibleText("India");



new Select(driver.findElement(By.name("country"))).selectByIndex(index);

new Select(driver.findElement(By.name("country"))).selectByValue(value);










read more...

Wednesday 24 February 2016

Commonly used selenium IDE commands

. There are probably the most commonly used commands for building tests in selenium IDE

Open :- Opens a page using a URL .

Click/ClickAndWait :- Performs a click operation,and optionally waits for a new page to load .

verifyTitle/assertTitle :- Verifies an expected page title .

verifyTextPresent :-  Verifies expected text is somewhere on the page .




 
read more...

Monday 8 February 2016

Most important selenium interview questions

selenium interview questions and answers


1. What is the automation. why automation in software testing ?

Automation :- Any task if performed with help of tool/Software programs is called automation.

Advantages :- Perform regression testing , test execution can be completed faster, reduce cost to the company(CTC),testing is consistent and effectiveness,re-usability of scripts,reporting is easy,reduce cost of testing.

2. What is the selenium. why we need selenium tool ?

 Selenium is a one of the  automation testing tool , this is only  for web applications automation purpose.








read more...

Wednesday 3 February 2016

Configuration of Selenium in eclipse

installing selenium webdriver in eclipse



1. Fist  we need install  JDK(Java Development Kit ) in your system




2.Download eclipse from the below site

http://www.eclipse.org/downloads/
  or
eclipse luna- 32 bit click
3. extract the zip file in any desired drive. Eclipse is an standalone application, not necessary to install it 

4. Go to the directory where you have saved eclipse IDE and look for eclipse.exe 






















read more...
 
Copyright © 2014 SeleniumCS • All Rights Reserved.
Template Design and • Powered by chakrapani.bayyana
back to top