硒不能识别Tableau网络元素

时间:2019-01-09 14:45:52

标签: selenium tableau

Selenium出于某种原因无法识别任何Tableau Web元素,我不明白为什么。

例如,我有一个id = abc的Tableau Web元素,与此元素交互时,Selenium抛出了我NoSuchElementException。知道为什么Selenium无法识别Tableau元素吗?

  

org.openqa.selenium.NoSuchElementException:无此类元素:无法   定位元素:{“方法”:“ css选择器”,“选择器”:“#main-content”}   (会话信息:chrome = 71.0.3578.98)(驱动程序信息:   chromedriver = 2.32.498550   (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a),平台= Windows NT   6.1.7601 SP1 x86_64)(警告:服务器未提供任何堆栈跟踪信息)命令持续时间或超时:0毫秒   有关此错误的文档,请访问:   http://seleniumhq.org/exceptions/no_such_element.html构建信息:   版本:“ 3.10.0”,修订版:“ 176b4a9”,时间:   '2018-03-02T19:03:16.397Z'系统信息:主机:'INVA621934',IP:   '10 .164.31.43',操作系统名称:'Windows 7',os.arch:'amd64',os.version:   '6.1',java.version:'1.8.0_131'驱动程序信息:   org.openqa.selenium.chrome.ChromeDriver功能{acceptSslCerts:   true,applicationCacheEnabled:false,browserConnectionEnabled:false,   browserName:chrome,chrome:{chromedriver版本:2.32.498550   (9dec58e66c31bc ...,userDataDir:c:\ users \ A62193〜1.INT \ AppDa ...},   cssSelectorsEnabled:true,databaseEnabled:false,handlesAlerts:   true,hasTouchScreen:false,javascriptEnabled:true,   locationContextEnabled:true,mobileEmulationEnabled:false,   nativeEvents:true,networkConnectionEnabled:false,pageLoadStrategy:   正常,平台:XP,平台名称:XP,可旋转:false,   setWindowRect:true,takesHeapSnapshot:true,takesScreenshot:true,   UnexpectedAlertBehaviour:,unhandledPromptBehavior:,版本:   71.0.3578.98,webStorageEnabled:true}会话ID:5979838c858d92f29b509766235dedf5 ***元素信息:{Using = css   选择器,值=#main-content}   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:160)   在   org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)   在   org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)   在   org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:371)   在   org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(RemoteWebDriver.java:465)   在org.openqa.selenium.By $ ByCssSelector.findElement(By.java:430)在   org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)

0 个答案:

没有答案