I’m using the Java Selenium RC and I want to know how to use the click method from the DefaultSelenium. How do I specify to click a button? I know when I use the “Inspect Element” on a button sometimes it says name=btng or id="search" but sometimes it has neither. When this is the case, what do I use as the argument for the click() method?
I’m using the Java Selenium RC and I want to know how to use
Share
Selenium supports a number of strategies for locating an element on a page, including id, name, css, xpath, etc. Details on the supported Element Locators can be found here.