Пишу тест для того чтоб в поле ввести текст (UA-2015-06-12-000038). Через xpath
Input Text xpath= /x:html/x:body/x:div/x:div/x:div[2]/x:div/x:div/x:div/x:tender-table/x:div/x:div[1]/x:div[1] UA-2015-06-12-000038
Мне дало такой ерор:
InvalidSelectorException: Message: The given selector /x:html/x:body/x:div/x:div/x:div[2]/x:div/x:div/x:div/x:tender-table/x:div/x:div[1]/x:div[1] is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: Unable to locate an element with the xpath expression /x:html/x:body/x:div/x:div/x:div[2]/x:div/x:div/x:div/x:tender-table/x:div/x:div[1]/x:div[1] because of the following error:
NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces
Stacktrace:
at FirefoxDriver.annotateInvalidSelectorError_ (file:///tmp/tmp2pq3F_/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/driver-component.js:10273)
at FirefoxDriver.prototype.findElementsInternal_ (file:///tmp/tmp2pq3F_/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/driver-component.js:10331)
at FirefoxDriver.prototype.findElements (file:///tmp/tmp2pq3F_/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/driver-component.js:10335)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmp2pq3F_/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/command-processor.js:12282)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmp2pq3F_/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/command-processor.js:12287)
at DelayedCommand.prototype.execute/< (file:///tmp/tmp2pq3F_/webdriver-py-profilecopy/extensions/fxdriver@googlecode.com/components/command-processor.js:12229)