Skip to content

Extend xpath detection to support xpath starting with (// #794

@aaltat

Description

@aaltat

Selenium2Library locators support xpath's that are not prefixed if the xpath starts with //. It would also good to support xpath starting with (// because it is quite common situation to access index of the xpath.

Now one has to write

| Page Should Contain Element | xpath=(//div)[1] |

But it would be nice if this would work:

| Page Should Contain Element | (//div)[1] |

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions