0

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'?

1 Answer 1

1

one and two are two different classes, the space is not part of their names

assertElementPresent
css=div[id='me'][class='one'][class='two']
Sign up to request clarification or add additional context in comments.

2 Comments

As an aside, is it possible to detect alerts using Selenium IDE (no webdriver)? assertAlertPresent doesn't seem to help
@MyDaftQuestions Sorry, but I don't know anything about selenium IDE. I do know what I wrote about the classes so I thought I will try to help :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.