Commit 447b6997 authored by Qazi Zain's avatar Qazi Zain

Fourth Commit Added Updated DropDown Don't having Select Option

parent b35682a4
......@@ -7,7 +7,7 @@ import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
public class WebElementAutomation {
public static void main(String[] args) {
public static void main(String[] args) throws InterruptedException {
WebDriver obj = new FirefoxDriver();
// for maximizing the window.
obj.manage().window().maximize();
......@@ -26,6 +26,34 @@ public class WebElementAutomation {
System.out.println(StaticDropDown.getFirstSelectedOption().getText());
//------------------------------------> updated Static DropDown <-------------------------------------------
Thread.sleep(2000);
obj.findElement(By.cssSelector("div#divpaxinfo")).click();
for(int i=1;i<=2;i++)
{
obj.findElement(By.cssSelector("span#hrefIncAdt")).click();
}
Thread.sleep(2000);
for(int i=1;i<=3;i++)
{
obj.findElement(By.cssSelector("span#hrefIncChd")).click();
}
obj.findElement(By.cssSelector("span#hrefDecChd")).click();
Thread.sleep(2000);
for(int i=1;i<=2;i++)
{
obj.findElement(By.cssSelector("span#hrefIncInf")).click();
}
Thread.sleep(2000);
obj.findElement(By.id("btnclosepaxoption")).click();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment