Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

JQuery alerts are not recognized with WebDriver. #1528

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 1528

What steps will reproduce the problem?
1.WebDriver is unable to identify JQuery Alerts. And not performing user actions on
JQuery alerts.

What is the expected output? What do you see instead?
Expected: WebDriver will identify the JQuery Alert, and perform the Button Action based
on the user choice.
Actual: JQuery alerts are not identifying with current WebDriver.


What version of the product are you using? On what operating system?
I am using selenium-server-standalone-2.0b2.jar


Please provide any additional information below.
My code is working fine with JavaScript alerts but the same code is not working with
JQuery alerts; See the below code for more info:
//-------------------------------------
Alert alert = driver.switchTo().alert();
        // Get the text of the alert or prompt
        //System.out.println("---"+alert.getText());

        String msgTxt = alert.getText();

        if(!msgTxt.contentEquals("false")){
            alert.accept();
        }

//-------------------------------------

Reported by karun.c.reddy on 2011-04-08 12:25:32

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions