You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to selenium-users...@googlegroups.com
I have 2 ul elements that show up when when something bad happens in my web application. I can use css selectors to find the first one, but I'm not sure how to find the second one.
Here is the x-path element for both of these:
/html/body/div[@id='main']/div[@id='content-box']/form[@id='users']/dl/dd[3]/ul/li
/html/body/div[@id='main']/div[@id='content-box']/form[@id='users']/dl/dd[4]/ul/li
I can find the first element with the following css
css=ul[class='errors']
but this of course only finds the first element.
The html looks similar to this.
<dd>
<ul class="errors">
<li>error text</li>
</ul>
</dd>
<dd>
<ul class="errors">
<li>some other error text</li>
<ul>
</dd>
burnt
unread,
Jan 16, 2009, 1:17:48 PM1/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to selenium-users...@googlegroups.com
Thanks for the reply gim_h
I originally thought the same, but I kept getting
[error] locator not found: ...
I did find that css=dd:nth-child(8)>ul.errors will select the first error and
css=dd:nth-child(10)>ul.errors will select the second child.