Commit d29d8db6 authored by Qazi Zain's avatar Qazi Zain

Fifth commit Here i added Dynamic Drop Down in Code

parent 447b6997
......@@ -53,6 +53,14 @@ public class WebElementAutomation {
Thread.sleep(2000);
obj.findElement(By.id("btnclosepaxoption")).click();
//----------------------------> Dynamic DropDown <----------------------------------------------------------
obj.findElement(By.cssSelector("input#ctl00_mainContent_ddl_originStation1_CTXT")).click();
obj.findElement(By.xpath("//a[@text='Bengaluru (BLR)']")).click();
Thread.sleep(2000);//to hold or pause your test
obj.findElement(By.xpath("(//a[@text='Chennai (MAA)'])[2]")).click(); // usually use that kind of xpath when full path also give similar value.
......
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