magic_test icon indicating copy to clipboard operation
magic_test copied to clipboard

Log accept alert

Open faqndo97 opened this issue 2 years ago • 3 comments

Is there a way to accept alert and log that in the file? If not we can start to think on how to solve that.

faqndo97 avatar Apr 27 '22 04:04 faqndo97

This is a little bit complicates probably because I think we don't have an event to log that so we need think other ways to solve it. Thinking out-loud I think we can check if the element clicked is a link or a button with a data-confirm or data-turbo-confirm and if those are present we can assume that the alert is involved and wrap the code in a accept_alert.

faqndo97 avatar Apr 27 '22 04:04 faqndo97

Linking #1 here for future reference.

gazayas avatar Jun 23 '23 05:06 gazayas

Maybe we could use a keybinding (similar to how we generate assertions with Ctrl + Shift + A) to start the accept_alert block, perform whatever actions we want to exist in it, and then do the same keybinding to end the block.

gazayas avatar Jul 10 '23 06:07 gazayas