-2

I'm trying to select element on webapp by using Xpath expression. I've choosen page with maps.

Link for page: http://www.openstreetmap.org/.

I've thought I know Xpath, but nothing works here. For example, I need to search for any city. Xpath to search box is:

//input[@id='query'] 

It should work but not. Can somebody explain me why Xpaths are blocked on that page?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
soncrash
  • 47
  • 1
  • 8

1 Answers1

0

Just use the option By.ID to find the element, If you have an ID there's no need to use XPATH. In the IDE just type "query" in the target field.