mlm mlm - 1 year ago 68
Java Question

org.openqa.selenium.firefox.FirefoxDriver.findElement("q")) finds a "q" element but where is it?

When I use Selenium to locate the first "q" html element on the page it appears to find a "q" element. However, when I search that page's source html code (within the browser) for

I get no results.

Why is this?

I'm using the method:

Answer Source"q") finds an element in browser, where name attribute is "q" for a web element. search the source for name="q", You can see following snippet.

   <input class="lst lst-tbb sbibps" id="lst-ib" maxlength="2048" name="q" autocomplete="off" title="Search" type="text" value="" aria-label="Search">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download