硒功能

时间:2019-05-08 10:57:00

标签: testing

注销应用程序时出现问题,但注销无法正常运行。请帮助我。

我尝试了所有定位器。这是代码

他们正在使用按钮类型。

issue:org.openqa.selenium.NoSuchElementException:否这样的元素:无法找到元素:{“ method”:“ xpath”,“ selector”:“ / html / body / div [2] / div / nav / div / a“}   (会议信息:chrome = 74.0.3729.108)   (驱动程序信息:chromedriver = 74.0.3729.6(255758eccf3d244491b8a1317aa76e1ce10d57e9-refs / branch-heads / 3729 @ {#29}),platform = Linux 3.19.0-25-generic x86_64)(警告:服务器未提供任何堆栈跟踪信息) 命令持续时间或超时:0毫秒 有关此错误的文档,请访问:https://www.seleniumhq.org/exceptions/no_such_element.html 构建信息:版本:'3.141.59',修订版本:'e82be7d358',时间:'2018-11-14T08:25:53' 系统信息:主机:'triesten-desktop',ip:'127.0.1.1',os.name:'Linux',os.arch:'amd64',os.version:'3.19.0-25-generic',java .version:“ 1.8.0_211” 驱动程序信息:org.openqa.selenium.chrome.ChromeDriver 功能{acceptInsecureCerts:false,acceptSslCerts:false,applicationCacheEnabled:false,browserConnectionEnabled:false,browserName:chrome,chrome:{chromedriverVersion:74.0.3729.6(255758eccf3d24 ...,userDataDir:/tmp/.com.google.Chrome.dZboEb} ,cssSelectorsEnabled:true,databaseEnabled:false,goog:chromeOptions:{debuggerAddress:localhost:53595},handlesAlerts:true,hasTouchScreen:false,javascriptEnabled:true,locationContextEnabled:true,mobileEmulationEnabled:false,nativeEvents:true,networkConnectionEnabled:false,pageLoadStrategyy :正常,平台:LINUX,平台名称:LINUX,代理:Proxy(),可旋转:false,setWindowRect:true,strictFileInteractability:false,takesHeapSnapshot:true,takesScreenshot:true,超时:{隐式:0,pageLoad:300000,脚本: 30000},意外警报行为:忽略,unhandledPromptBehavior:忽略,版本:74.0.3729.108,webStorageEnabled:true} 会话ID:7b4dfc928269d68b3603df556fa212bd ***元素信息:{使用= xpath,值= / html / body / div [2] / div / nav / div / a}     在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)处     在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)     在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     在java.lang.reflect.Constructor.newInstance(Constructor.java:423)     在org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)     在org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)     在org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)     在org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)     在org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)     在org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)     在org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)     在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)     在org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)     在org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)     在org.openqa.selenium.By $ ByXPath.findElement(By.java:353)     在org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)     在test1.AutomationTest.f(AutomationTest.java:29)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)     在org.testng.internal.Invoker.invokeMethod(Invoker.java:645)     在org.testng.internal.Invoker.invokeTestMethod(Invoker.java:822)     在org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1130)     在org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)     在org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)     在org.testng.TestRunner.privateRun(TestRunner.java:782)     在org.testng.TestRunner.run(TestRunner.java:632)     在org.testng.SuiteRunner.runTest(SuiteRunner.java:366)     在org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)     在org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)     在org.testng.SuiteRunner.run(SuiteRunner.java:268)     在org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)     在org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)     在org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)     在org.testng.TestNG.runSuitesLocally(TestNG.java:1169)     在org.testng.TestNG.run(TestNG.java:1064)     在org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:113)     在org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:206)     在org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:177)

0 个答案:

没有答案