Hello Eron,
Good Morning.!
I gone through discussion. I got it, but the main problem is I am still unable to enter autocomplete box showing list of possible results.
First thing to know is I have to wait after each letter is provided in input box and I implemented this in following way--
String loc_nm= "Nagpur";
for(int i=0;i<loc_nm.length();i++)
{
searchBox.sendKeys(Character.toString(loc_nm.charAt(i)));
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
Now I am getting possible list as shown in second screen "list_of_results".
I am providing few snapshots of webpage.First screen"autocomplete_box" shows the div & class of autocomplete_box in which all results are contained. Second screen "list_of_results" shows list of results and third screen "select_result" shows result which is selected.
Main problem is I am unable to enter autocomplete_box using any of ID, cssSelector and ID. Then I have to go through whole list starting from first result. And here also I am unable to enter box and use key down action or mouse over action. Then I have to select particular result as shown in third screen.
I have provided all screens with their HTML code.Can I get help to sort out my problem? I am also unable to use xpath of element due to dynamic ID genarated.
First problem is how to locate web elements according to attachment order by using any element locator(ID,xpath,cssSelector etc).
Second problem is use keyDown or Mouseover action (I don't have any other option)
--
Best regards,
B Chandra