При запуске кода appium на android устройстве появляется ошибка ниже - PullRequest
0 голосов
/ 13 апреля 2020

13 апреля 2020 г. 18:40:51 org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Обнаружен диалект: W3C Исключение в потоке "main" org.openqa.selenium.NoSuchElementException: Не удается найти элемент с помощью эта стратегия: Карта локатора: - собственный контент: "By.chained ({By.xpath: // [@ text = 'введите здесь имя']})" - html content: "по идентификатору или имени" nametextbox "" в io.appium.java_client.pagefactory.AppiumElementLocator.findElement (AppiumElementLocator. java: 102) в io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept (1010). atceptorO. appium.java_client. android .AndroidElement $$ EnhancerByCGLIB $$ b598166 c .sendKeys () at Practise.AppiumFramwork.Ecommerc_TC_01.main (Ecommerc_TC_01. java: 40) Возврат получателя: или Не удалось выполнить ожидаемое условие: ожидание io.appium.java_client.pagefactory. AppiumElementLocator$WaitingFunction@5d534f5d (попытка в течение 1 секунды с интервалом 500 миллисекунд) в org.openqa.selenium.support.ui.FluentWait.timeoutEx ception (FluentWait. java: 303) в org.openqa.selenium.support.ui.FluentWait.until (FluentWait. java: 271) в io.appium.java_client.pagefactory.AppiumElementLocator.waitFor (AppiumEle. *: 76) at io.appium.java_client.pagefactory.AppiumElementLocator.findElement (AppiumElementLocator. java: 95) ... еще 3 Причины: org.openqa.selenium.NoSuchElementException: Не удается найти элемент с помощью By.chained ( {By.xpath: // [@ text = 'Введите имя здесь']}) Для документации по этой ошибке, пожалуйста, посетите: http://seleniumhq.org/exceptions/no_such_element.html Информация о сборке: версия: '3.11.0' , редакция: 'e59cfb3', время: '2018-03-11T20: 26: 55.152Z' Системная информация: хост: 'DESKTOP-127BSDV', ip: '192.168.137.1', имя os.name: 'Windows 10' , os.arch: 'amd64', os.version: '10 .0 ', java .version:' 1.8.0_241 'Информация о драйвере: driver.version: AndroidDriver на io.appium.java_client.pagefactory.bys.builder.ByChained .findElement (ByChained. java: 72) в org.openqa.selenium.remote.RemoteWebDriver.findElement (RemoteWebDriver. java: 311) в io.appium.java_cli ent.DefaultGenericMobileDriver.findElement (DefaultGenericMobileDriver. java: 58) в io.appium.java_client.AppiumDriver.findElement (AppiumDriver. java: 1) в io.appium.java_client. * 1024Driver. java: 1) в io.appium.java_client.pagefactory.bys.ContentMappedBy.findElement (ContentMappedBy. java: 36) в org.openqa.selenium.remote.RemoteWebDriver.findElement (RemoteWebDriver. *) 10: * в io.appium.java_client.DefaultGenericMobileDriver.findElement (DefaultGenericMobileDriver. java: 58) в io.appium.java_client.AppiumDriver.findElement (AppiumDriver. java: 1) в io.apprient .j. « java: 150) в io.appium.java_client.pagefactory.AppiumElementLocator $ WaitingFunction.apply (AppiumElementLocator. java: 1) в org.openqa.selenium.support.ui.FluentWait.until (FluentWait. java: 248) ... еще 5

...