Is it possible for Selenium to interact with LightSwitch buttons?
In my initial attempt, I had to locate a button styled using LightSwitch in CSS. I used By.CSSSelector to find the button. However, upon locating the button, I realized that it was utilizing the vclick
event from the JQuery library.
Subsequently, I wrote the following code:
js.ExecuteScript("$('.ui-page-active .msls-footer div div:nth-child(2) span').trigger('vclick')");
Despite successfully locating the button using Selenium, it seems like the button is not being clicked. What could I be missing here?
Additionally, even though the test passes without any errors, no new window is opened after clicking the button.
The expected behavior is for the application to switch screens upon clicking the button, but unfortunately, this transition does not occur as intended.
Location of the button on screen:
Expected screen after clicking the button: