How To Handle Dropdown Menu In Selenium Webdriver In Yatra.com
Here in this video tutorial you will learn Selenium script to handle dropdown menu, how to handle dropdown menu in selenium, how to handle dropdown menu using selenium webdriver, automation testing for dropdown menu
====== Selenium Script ========
package com.yatra;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
public class DropDown
{
public static void main(String[] args)
{
WebDriver driver=new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get(" http://www.yatra.com/");
String xp="//a[contains(text(),'Customer Support')]";
WebElement menu = driver.findElement(By.xpath(xp));
// Move mouse pointer on DropDown Menu
Actions actions=new Actions(driver);
actions.moveToElement(menu).perform();
driver.findElement(By.linkText("Contact Us")).click();
}
}
------------------------------------------------------------------------------------------------------------
Please subscribe us:
https://www.youtube.com/c/EasyTutoria...
Like us on Facebook:
https://www.facebook.com/EasyTutorial...
Here in this video tutorial you will learn Selenium script to handle dropdown menu, how to handle dropdown menu in selenium, how to handle dropdown menu using selenium webdriver, automation testing for dropdown menu
====== Selenium Script ========
package com.yatra;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;
public class DropDown
{
public static void main(String[] args)
{
WebDriver driver=new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get(" http://www.yatra.com/");
String xp="//a[contains(text(),'Customer Support')]";
WebElement menu = driver.findElement(By.xpath(xp));
// Move mouse pointer on DropDown Menu
Actions actions=new Actions(driver);
actions.moveToElement(menu).perform();
driver.findElement(By.linkText("Contact Us")).click();
}
}
------------------------------------------------------------------------------------------------------------
Please subscribe us:
https://www.youtube.com/c/EasyTutoria...
Like us on Facebook:
https://www.facebook.com/EasyTutorial...
How To Handle Dropdown Menu In Selenium Webdriver In Yatra.com | |
41 Likes | 41 Dislikes |
17,839 views views | 57,381 followers |
Education | Upload TimePublished on 24 Apr 2015 |
No comments:
Post a Comment