为了使用户名字段可见,您需要将光标移动到登录链接:
....driver.get('http://www.etoro.com/au')action = webdriver.ActionChains(driver)action.move_to_element(driver.find_element_by_xpath( './/a[@]/span[text()="Login"]'))action.perform()# TODO Need to wait until the `inputUsername` field is visibleelem = driver.find_element_by_class_name('inputUsername')...


