So after some time with the set up I was able to run the Inspector recorder to see what selector is seen by it during test execution. Verbos told in the logs that the click operation cannot be performed because it seems that the selector is still the issue. As a starter I used all possible Plawright debugger which you can find in here. … from … subtree intercepts pointer eventsĪfter long testing, debugging and with little bit of help I was able to find the solution. Waiting for element to be visible, enabled and stableĬhecking that element receives pointer events at (140.33,365.12) Playwright error logs that I am getting during/after execution of the test attempting click action 'span:has-text("Please confirm you would like to mark this deal as containing Xyz")'Īwait ('div') Īwait ('/html/body/div/div/div/div/div/div/div/span/button') await ('dialog', dialog => dialog.accept()) Īwait ('button:has-text("Confirm")') Testing Method which I use, you can see commented out attempts to use the dialog handler, however it will not work because those dialogs are not browser type ones. For that being not pretty, please excuse me. I even used a default copy/paste browser xpath to be sure that I am getting the correct button. Below I am pasting HTML code of the Bootstrap window, simple method which is used for clicking operation. At first I thought that maybe some simple dialog handlers will do which you can see examples on, however it soon got to me that they only refer to Browser dialogs and not Bootstrap ones. click operation on Bootstrap modal window and tries to look for the element in the background. From my observation Playwright is not able to perform the. click operation the test runner freezes on the modal and then after a few seconds the grayed out background starts scrolling up and down and after the while the test fails. It seems that each time when I try to interact with a Confirm or Cancel button by. So I have been facing some issue with some of my tests which require a user to Confirm or Cancel a Bootstrap modal dialogs/popups windows.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |