I am automating a sign up form on a company website.
There is a part of that form where a button “Add HQ Address” needs to be clicked:
This will open a popup (I think it is called a Modal Window) where more data is to be entered:
The Selenium Studio 5.4.1 that I use is not able to focus on this new window and continues to say the respective ID or index is not found.
For your information, I recorded filling this form using the Katalon Recorder IDE Chrome Extension and then exported the script in selenese for Katalon Studio.
The code for the pop us is as follows:
selenium.click(‘id=_application_portlet_WAR_morcmsportlet_btnAddHQAddress’)
selenium.selectFrame(‘index=0’)
selenium.click(‘id=_application_portlet_WAR_morcmsportlet_postalTx’)
The error occurs at the "index=0’ line.
Please help as much as you can.