Relative Content

Tag Archive for javaselenium-webdrivertesting

Unable to click on modal close button with data-bs-target in Selenium WebDriver

I’m working on an automated test using Selenium WebDriver for a web page that contains a module with several photos and multiple associated parameters. Each photo has a “Detail” button that opens a modal (a pop-up window within the same page) with more information. This modal also includes a button to close it, allowing the user to continue viewing the other photos.

Asserts for tests

I need to add asserts to my tests. However, when I try to do this, it returns org to me.