The application for which I’m writing script (using selenium-webdrive with Ruby) is built in AJAX. In that, I want to check whether contents are greyed out-
- I clicked on button
- Then div is loaded but I can see contents are greyed out & following div in firebug –
<div id="bottomHalf" class="disabled" style="background-color: transparent;">
To check whether it’s greyed out, I’m confused how to write code. Based on my knwoledge, I could only find element –
driver.find_element(:id, "bottomHalf")
But I don’t know how to write code for checking class=”disabled” so that I can verify that contents are really greyed out.
You can use CSS selectors instead of bare ID selection.
More info about available selection options is available here