Hello,
Please clarify how to solve the problem with a click.
There is an iframe.
Within this iframe there is a clickable element. But click is implemented without ‘button’ tag and onclick attribute.
I tried to read WebUI.getText() form deeper layer - it works. The upper layer xpath is configured as an ancestor of that element (to be sure that xpath is ok)
Following keywords pass:
WebUI.verifyElementVisible()
WebUI.verifyElementPresent()
WebUI.verifyElementClickable()
but click is failed:
WebUI.click()
WebUI.enhancedClick()
@kazurayam Thank you for your answer!
The initial question is there any difference for WebUI.click() if click is implemented without ‘button’ tag or onclick attribute.
I will add ‘button’ tag text to initial questions. highlighted Button word is not displayed.
When you click on any of your elements, does any of them cause a reaction such as a “drop-down” list to appear or any other GUI thing to appear. It may be that your element is being covered by this if there is one that appears.
Also, I notice you switch pages from log in to exploring, but you don’t use: WebUI.waitForPageLoad(2)
Just a suggestion and I set mine even higher but the statement works as soon as the next page has loaded, not the time I have set. (That’s the way it’s supposed to work That’s why I suggest it.)
As the screenshot tells, a call to “Verify Element Clickable” for “F6 copy” failed. So, the keyword is telling you that the keyword “Verify Element Clickable” found something wrong.
Do you mean that you can manually click the button in the browser window? OK, that could be the case.
All it means is that your test case script failed to mimic your manual operation. So the problem in your test script still remains unresolved. — I guess, the XPath you specified is wrong.
@grylion54 Thank you for your comment. Yes, after click new screen appears.
Ok, I will try WebUI.waitForPageLoad(2) in test cases, currently I just used WebUI.delay(2)