views:

40

answers:

0

Hi

While testing a web app using selenium, I am trying to access a link in a html page.

Xpath to this link is //div[div[text()='Report:']]//a[div[text()='Remove All']]

This xpath is working in Firefox but in IE i am getting parse error. I verified this xpath using ie webpage source code and xmlspy. but still getting this error while running the test.

com.thoughtworks.selenium.SeleniumException: ERROR: Invalid xpath [3]: XPath parse error //div[div[text()='Report:']]//a[div[text()='Remove All']]:
//
Step
[
div
Predicate
]
//
Step
[
div
Predicate
]