无法通过ID找到元素...
答案 0 :(得分:0)
driver.get(self.base url + "url")
driver.find_element_by_id("username").clear()
driver.find_element_by_id("password").send_keys("")
driver.find_element_by_id("").clear()
driver.find_element_by_id("").send_keys("") ## here popup window opened after the open the values are not taken by id
driver.find_element_by_id("").click()
driver.find_element_by_id("").click()
##这里打开一个新窗口并且没有采用发送键值## driver.find_element_by_id( “”)。send_keys( “”) driver.find_element_by_id( “”)。点击() driver.find_element_by_id( “”)。send_keys( “”)