Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8914643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:46:29+00:00 2026-06-15T04:46:29+00:00

The application for which I’m writing script (using selenium-webdrive with Ruby) is built in

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:46:33+00:00Added an answer on June 15, 2026 at 4:46 am

    You can use CSS selectors instead of bare ID selection.

    driver.find_element(:css, '#bottomHalf.disabled')
    

    More info about available selection options is available here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application which I want to work with both Active Directory and
I am working on application which stores event using EKEvent class and I want
I have an application which uses the microsoft kinect device. The thing is that
I have an application which uses code that produces various types of objects and
My application which is built on VC++ 2008 , when run on a freshly
My application which I built for 1.5, shows text blurry on high density screen
I have an application which requires that a solid black outline be drawn around
I have an application which extracts data from an XML file using XPath. If
I have a Java application which I want to shutdown 'nicely' when the user
I'm writing an application which reads large arrays of floats and performs some simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.