Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS Dialog not seen ? #46

Open
robov opened this issue Jun 11, 2019 · 1 comment
Open

JS Dialog not seen ? #46

robov opened this issue Jun 11, 2019 · 1 comment

Comments

@robov
Copy link

@robov robov commented Jun 11, 2019

I get this error when running my test Facebook\WebDriver\Exception\UnexpectedAlertOpenException: unexpected alert open: {Alert text :

However when I derive my DuskTestCase from the original one
use Laravel\Dusk\TestCase as BaseTestCase;
I do not get this error...

My testscript expects the alert open, and uses
$browser->acceptDialog();
to close it

@robov
Copy link
Author

@robov robov commented Jun 19, 2019

This code only works when I derive from the starndard, when I derive from the package this breaks with unexpected alert

            $browser->waitForDialog(5);
            $browser->acceptDialog(); // do the delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.