XPath issue with IE8

15 views
Skip to first unread message

Sanjay

unread,
Jun 17, 2010, 9:35:19 AM6/17/10
to Indian Selenium Users Group, sanje...@patni.com
Hi everyone,

I am using selenium RC and unable to run the following xpath in IE8,
this xpath works fine in firefox but in IE8 it gives error 'element
not found'. This object does not have ID, please let me know if there
are any work arounds to resolve this issue in IE8.

//div["/d"]/ul/li[3]/div/li/a/font["/d"]

Manish Chakravarty

unread,
Jun 21, 2010, 4:31:14 AM6/21/10
to indian-seleni...@googlegroups.com, sanje...@patni.com
Sajnay,

You need to tell us what web page you are testing.
Btw, it's generally not a good idea to use XPath's like that. Tests
are brittle if written that way.
I would suggest you use good id's along with the Page Object Pattern
- http://code.google.com/p/selenium/wiki/PageObjects

-- Manish

> --
> You received this message because you are subscribed to the Google Groups "Indian Selenium Users Group" group.
> To post to this group, send email to indian-seleni...@googlegroups.com.
> To unsubscribe from this group, send email to indian-selenium-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/indian-selenium-users-group?hl=en.
>
>

--
Manish Chakravarty
Blog: http://manish-chaks.livejournal.com/
LinkedIn: http://www.linkedin.com/in/manishchakravarty
Twitter: http://twitter.com/ManishChaks
Facebook: http://www.facebook.com/manish.chakravarty

Reply all
Reply to author
Forward
0 new messages