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 3939584
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:19:01+00:00 2026-05-20T00:19:01+00:00

On the web page you can filter what applications are displayed based on the

  • 0

On the web page you can filter what applications are displayed based on the status (Active, Inactive, or Deleted).

When the “Show All” is selected, then applications with a status of Active, Inactive, or Deleted should be displayed.

I’ve got it to loop through the text of the cells using this code:

     $ie.table.each do | row | 
          row.each do | cell | 
            puts cell.text() 
             # Passes if the text is either Active, Inactive or Deleted.
           end 
         end

If the text for the the rows it loops through is either Active, Inactive, or Deleted the test should pass.

  • 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-05-20T00:19:02+00:00Added an answer on May 20, 2026 at 12:19 am

    It isn’t clear by your example what is the cells and where the information is for the status. Since that is the case I will assume you can access the status in row[0] and the filter text is in a var called filter and you intend to skip displaying the whole row.

    So with that assumption, in my head your data looks like:

    Status   | Name
    --------------------
    Active   | Foo App
    Inactive | Bar App
    Active   | Baz App
    Deleted  | Blam App
    

    And if that be the case:

    $ie.table.each do | row |
      if filter == 'All'
        next unless %w(Active Inactive Deleted).include?(row[0])
      else
        next unless row[0] == filter
      end
    
      row.each do | cell | 
        puts cell.text()
      end 
    end
    

    And if the assumption is made that there can be no status other than (Active Inactive Deleted) then we can simplify it:

    $ie.table.each do | row |
      unless filter == 'All'
        next unless row[0] == filter
      end
    
      row.each do | cell | 
        puts cell.text()
      end 
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I show a web page in a transparent window and have the
How can I delete all the tables in a web page? The tables don't
I'm using the following in the web page but can't get a response from
How can I open a web-page and receive its cookies using PHP? The motivation
Can a Silverlight 2 enabled web page be managed from an Apache server? (I'm
The scenario is this. A web page contains: some DIVs whose visibility can be
How can I add Page transitions effects like IE in Safari for web pages?
Can you do mock page requests with NUnit with webforms? what about web service
I try to create login form in web application. in JSP page I can
I basically have this web page where you can narrow your search results by

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.