如何点击下方Login
?
<div style="margin: 20px 0; text-align: center;">
<a class="button" href='/aems/login.do'>Login</a>
</div>
我写了下面但得到了错误:
driver.find_element(:class, "button").submit
错误
[remote server] file:///C:/DOCUME~1/rakshiar/LOCALS~1/Temp/webdriver-profile2013
0125-6116-rvc0z6/extensions/fxdriver@googlecode.com/components/driver_component.
js:8251:in `FirefoxDriver.prototype.findElementInternal_': Unable to locate elem
ent: {"method":"class name","selector":"button"} (Selenium::WebDriver::Error::No
请帮我在这里修复