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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:16:51+00:00 2026-06-05T07:16:51+00:00

The Selenium Reference documentation says Selenium does NOT support JavaScript alerts that are generated

  • 0

The Selenium Reference documentation says “Selenium does NOT support JavaScript alerts that are generated in a page’s onload() event handler. In this case a visible dialog WILL be generated and Selenium will hang until someone manually clicks OK.”

But how life goes – I happen to have an application that uses onload dialogs. I know of the “browserbot” workaround for previous versions but none of this works anymore for Selenium Webdrivers…

Has anybody tackled this one already?

  • 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-05T07:16:52+00:00Added an answer on June 5, 2026 at 7:16 am
    1. The limitation is only for Selenium RC (which has been oficially deprecated for like a year). Use Selenium WebDriver, if you can. It does not suffer from this limitation. If you use WebDriver, then driver.switchTo().alert() should work as usual.
    2. In Java, one can use ‘Robot’ for pressing Enter blindly. That way, I can’t read the dialog’s message, but at least can get rid of it.
    3. In C#, there’s SendKeys class for the same thing.
    4. You can’t do anything in plain JavaScript, I think.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does selenium support jQuery.live() when used as a default Capybara javascript driver in cucumber
The following command selenium.click(link=Identify Awards); opens a popup however the the test does not
Selenium is not working after Firefox upgraded to latest version 12.0. It is failing
In selenium IDE, I need to click on the nth link that has text
I see that Selenium 2 now supports WebDriverEventListener but the events don't really seem
I just discovered selenium - a great tool! I plan to run/use selenium-ide generated
Is there a way to view the generated source of a web page (the
I found storeHtmlSource method description in Selenium reference , but can't figure out how
The problem I am having is that I have setup runners for my Selenium/PHPUnit
I am testing using Selenium RC but most of the waitforNottext etc are not

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.