AE
Size: a a a
KM
R(
R(
AV
org.openqa.selenium.InvalidSelectorException: invalid selector: The result of the xpath expression "/comment()" is: [object Comment]. It should be an element.
(Session info: chrome=83.0.4103.116)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/invalid_selector_exception.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
*** Element info: {Using=xpath, value=/comment()}
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
B
AV
org.openqa.selenium.InvalidSelectorException: invalid selector: The result of the xpath expression "/comment()" is: [object Comment]. It should be an element.
(Session info: chrome=83.0.4103.116)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/invalid_selector_exception.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
*** Element info: {Using=xpath, value=/comment()}
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
public Node executeXPath(String xpath);
А то вроде получается, что XPath есть, но использовать можно только если возвращает ElementAV
public Node executeXPath(String xpath);
А то вроде получается, что XPath есть, но использовать можно только если возвращает ElementR(
AV
<div>один текст<span>другой текст</span> третий текст</div>
довольно муторно проверять только "третий текст" или " один текст", а универсальным XPath - может быть проще. А такие конструкции встречаются довольно часто.R(
public Node executeXPath(String xpath);
А то вроде получается, что XPath есть, но использовать можно только если возвращает ElementR(
AV
R(
BO
R(
R(
AV