what could be xpath or css for following snippet

Posted by doneright on Stack Overflow See other posts from Stack Overflow or by doneright
Published on 2010-03-29T22:47:19Z Indexed on 2010/03/29 22:53 UTC
Read the original article Hit count: 241

Filed under:
|
|

click //div[15]/div/ul/li[5]

In the snippet above, how can I write xpath or css selector based on known li item. Yes, I know li item ahead of time(such as @, +, * etc ) Also there is no guarantee that div[15] would be always div[15] it could be div[14] or div[17] etc

© Stack Overflow or respective owner

Related posts about selenium

Related posts about xpath