I work on selenium with java and when I try find element by (ID, xPath, css) all return the same exception:
'Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable
to locate element: {"method":"css selector","selector":"#City"} '
the element inside form without frame,
when I open Dev Tools in Chrome the execution context is set to top. AND my controls are located within form, that is a different context, not accessible from top. when I change context from top to the second option the controls appear
my question: how can I change the execution context from top to second option by selenium with java so I can locate controls ??