How To Handle Listbox In Selenium Webdriver Without Select class in Yatra.com
Here in this video tutorial you will learn selenium script to handle listbox, how to handle listbox in selenium webdriver, dropdown listbox, how to create dropdown listbox in notepad, how to handle dropdown listbox using selenium
======= Selenium Script =========
package com.yatra;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class ListBox
{
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/");
WebElement listbox = driver.findElement(By.id("BE_flight_origin_city"));
listbox.sendKeys("b");
listbox.sendKeys(Keys.DOWN);
listbox.sendKeys(Keys.ENTER);
}
}
------------------------------------------------------------------------------------------------------------
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 listbox, how to handle listbox in selenium webdriver, dropdown listbox, how to create dropdown listbox in notepad, how to handle dropdown listbox using selenium
======= Selenium Script =========
package com.yatra;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class ListBox
{
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/");
WebElement listbox = driver.findElement(By.id("BE_flight_origin_city"));
listbox.sendKeys("b");
listbox.sendKeys(Keys.DOWN);
listbox.sendKeys(Keys.ENTER);
}
}
------------------------------------------------------------------------------------------------------------
Please subscribe us:
https://www.youtube.com/c/EasyTutoria...
Like us on Facebook:
https://www.facebook.com/EasyTutorial...
How To Handle Listbox In Selenium Webdriver | Select class in Yatra.com | |
8 Likes | 8 Dislikes |
4,137 views views | 57,381 followers |
Education | Upload TimePublished on 24 Apr 2015 |
No comments:
Post a Comment