0
votes

I have a text field for filling the address. When entered few letters and the full wordings of location will be displayed. Normally it allow users to click on the full wordings for autofill the location. And this function is from Google Map. I am not sure how to get the autofill name from default Google Map in JMETER.

When I send keys ("57 Java") to text box, it will display "57 Java Road North Point" under the text box.

WDS.browser.findElement(org.openqa.selenium.By.xpath("//input[@value='']")).sendKeys("57 java");

enter image description here

1

1 Answers

0
votes

These "suggestions" are loaded by AJAX technology and being added to the DOM as you're typing.

Not sure about your application, for "normal" Google Maps it can be located like:

//div[@class='suggest']

enter image description here

So these "suggestions" are normal HTML elements which can be "found" using any suitable locator strategy