Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium assert has class

I have an element with a known id. I want to assert or verify that it has a specific class.

The HTML of the element is:

<a id="SearchList" class="something-else disabled"></a>

I want to use the id "SearchList" to locate the element and then verify that it has the class "disabled".

EDITS:

  • I am using the Selenium IDE a FireFox addon.
like image 844
ism Avatar asked Jun 19 '14 15:06

ism


1 Answers

verifyElementPresent | css=a[id='SearchList'][class*='disabled'] | 
like image 73
ism Avatar answered Sep 22 '22 00:09

ism