collective / collective/robotframework-selenium2screenshots
xpath locators not supported
- Dominant language
- RobotFramework
- Stars
- 28
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am trying to grab a screenshot (using keyword Capture and crop page screenshot) of a particular locator using a xpath like "//canvas[@id='test_view_chart_ConfigOverlayGraph_1']/../../../../..". But it fails with the below error:
WebDriverException: Message: Syntax error, unrecognized expression: #//canvas[@id='test_view_chart_ConfigOverlayGraph_1']/../../../../..
**The same xpath however works fine in Selenium2Library for identifying the locator.**
Could you please help
Regards
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Capture and crop page screenshot keyword with the reported XPath locator and compare its handling with Selenium2Library. Trace where the locator is parsed, then verify that the same XPath identifies the target and produces the requested screenshot without the syntax error.
Written by the indexing model from the issue text.
Assessment
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100