I am trying to get the runtime engine, using the Jenkins plugin, to run a test. It clicks on a button that opens a separate window. However, it does not recognize that this button is clickable.
The weird part is that it recognizes the button as clickable on the editor.
This is the html code for the button:
<div class="xdm-viewer"> <i class="fas fa-folder-open fa-lg" id="0"> </i> </div>
I am currently using an xpath to identify the object. However, this method was used only after I had tried recording the button as an object. Even after having the program wait for the button to be both visible and clickable, which succeeds, the program refuses to click on any instance of this object.
The code in Katalon looks like this:
path = ‘.//div[@class=“xdm-viewer”]’
WebUI.waitForElementVisible(new TestObject().addProperty(‘xpath’, ConditionType.EQUALS, path), 10) //Passes
WebUI.waitForElementClickable(new TestObject().addProperty(‘xpath’, ConditionType.EQUALS, path), 10) //Passes
WebUI.click(new TestObject().addProperty(‘xpath’, ConditionType.EQUALS, path)) //Fails
This code, however, looked originally like this:
WebUI.waitForElementVisible(findTestObject(‘Object Repository/Portal Testing/CT/Page_Webmail/i_xdm_button’), 10) //Passes
WebUI.waitForElementClickable(findTestObject(‘Object Repository/Portal Testing/CT/Page_Webmail/i_xdm_button’), 10) //Passes
WebUI.click(findTestObject(‘Object Repository/Portal Testing/CT/Page_Webmail/i_xdm_button’)) //Fails