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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:59:51+00:00 2026-06-07T09:59:51+00:00

I use watir in RadRails IDE. I need to attach a new window by

  • 0

I use watir in RadRails IDE. I need to attach a new window by it’s title, but in my web application there could be an error, the title is missed. So I can’t use the code:
ie3=Watir::IE.attach(:title, 'Mt Title').

The page is loaded and I can perform some actions there. Is there way to focus on that window not using page title? Or how can I define page title?

Maybe there is a possibility of choosing a window by name or some other attribute and if I do not know the exact name then can I define it or define names of all opened windows?

  • 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-07T09:59:53+00:00Added an answer on June 7, 2026 at 9:59 am

    If there is only one IE window this would work:

    browser = Watir::Browser.attach(:title, //)
    

    If you want to check if there is a page with a title, try something like this:

    begin
      browser = Watir::Browser.attach(:title, "teh codez")
    rescue Watir::Exception::NoMatchingWindowFoundException
      puts "could not find browser"
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use watir for testing in RadRails IDE.After clicking button Delete appears window Message
I use watir in radrails IDE. How can I find and print all existing
class MyWatir < Watir::Browser def with_watir_window(win) cw = window #current window win.use yield cw.use
I have a project, but I don't know which library that I could use
I'm testing a web application with ruby 1.8.7 and WATiR and I'd like to
Is there a better unit testing tool than WaTiR for Ruby web testing? Or
Everytime I use watir-webdriver to initialise a chrome browser instance, it launches as a
use Text::Table; my $tb = Text::Table->new(Planet,Radius\nkm,Density\ng/cm^3); $tb->load( [ Mercury,2360,3.7], [ Mercury,2360,3.7], [ Mercury,2360,3.7], );
I'm trying for the first time to use Watir for automated browser-based testing. For
I have some single watir.rb scripts that use IE and are written in a

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.