def testFirstAutomationTest(self):
if len(self.driver.find_elements_by_xpath("//*[@text='OK']")) > 0:
self.driver.find_element_by_xpath("//*[@text='OK']").click()
self.driver.find_element_by_xpath("//*[@text='Username']").send_keys('company')
self.driver.find_element_by_xpath("//*[@text='Password']").send_keys('company')
self.driver.find_element_by_xpath("//*[@text='Login']").click()
有一段代碼如上,我能找到Username,Password和Login,但是這個OK元素找不到
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/279058.html
標籤:Android
