Reputation: 4691
I'm learning Selenium IDE (Firefox plugin)
I've managed to test where there a single class in my element, but now I have 2 and it's failing
When my element is
<div id="me" class="one">
then I can use
assertElementPresent
css=div[id='me'][class='one']
And my test passes
Now I need to test the following element
<div id="me" class="one two">
I have attempted the following, none work
assertElementPresent
css=div[id='me'][class='one two']
and
assertElementPresent
css=div[id='me'][class='one '][class='two]
assertElementPresent
css=div[id='me'][class='one'][class=' two]
What do I need to do so I can verify that the ID ('me') has the css 'one two'?
Upvotes: 0
Views: 300
Reputation: 50854
one
and two
are two different classes, the space is not part of their names
assertElementPresent
css=div[id='me'][class='one'][class='two']
Upvotes: 1