使用selenium,无法获取元素位置,其他都可以,这个就是不行,,
点击确定按钮后 出现的一个div 但是这个div里面的东西都无法定位
就是找不到元素位置 其他的可以找到 java写的 错误提示: - *** Element info: {Using=css selector, value=#app > div > div.dialog_box > div > ul > li.content_box > ul > li:nth-child(8) > div > div.item_content}
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
- at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
- at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
-
复制代码运行结果及报错内容 - *** Element info: {Using=css selector, value=#app > div > div.dialog_box > div > ul > li.content_box > ul > li:nth-child(8) > div > div.item_content}
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
- at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
- at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
- at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
-
复制代码
|