tushargugnani / QAP-Dusk-Screencast

Dusk Demo Application Screencast commits
2 stars 0 forks source link

Assert NoJS Dialog #23

Open alexfleites opened 2 years ago

alexfleites commented 2 years ago

Hi, I have the following issue. When I visit a page a NoJS dialog appears something like Reload site or Allow Location, my issue is how works with this kind of dialog. I have this code but doesn't work because is not a .modal class present, even not an idea which selector is those dialogs. thank you in advance.

$browser->whenAvailable('.modal', function($modal) { $modal->assertSee('Reload site?') ->dismissDialog(); });

tushargugnani commented 2 years ago

@alexfleites Can you share the image of your dialog box?

alexfleites commented 2 years ago

Sure, here is Army National Guard - Get Started 2021-11-15 at 1 54 50 PM

alexfleites commented 2 years ago

Any updates?

alexfleites commented 2 years ago

Well never mind.. notice that you don't have a solution for this... maybe you have an explanation for this other issue. Why ->assertSee("BIRTH DATE") works in Chrome and not in Safari, and thank you in advance.