When I am trying to run in debug mode the object is visible but when we trying to run it is failing.
@kazurayam please help
When I am trying to run in debug mode the object is visible but when we trying to run it is failing.
@kazurayam please help
Please follow this guidance.
Thanks for the reply.
Code:
‘Verify Exclusion Rules tab is displayed’
WebUI.verifyElementText(findTestObject(‘Setup/Create Page Header’), ‘Exclusion Rules’, FailureHandling.STOP_ON_FAILURE)
‘Click on Create Button in Exclusion Page’
WebUI.click(findTestObject(‘Exclusion Page/Create_Save Button on Exclusion Page’))
‘Wait for Page’
WebUI.waitForElementVisible(findTestObject(‘Dashboard/Catalog Page Title’), 60)
Scenario: After clicking on a button i am waiting for 60 seconds.
While running the scripts it is not waiting for the element to be visible.
Error in console:
2020-12-05 11:14:33.195 DEBUG g with Rule Builder(Only Items) - 29: waitForElementVisible(findTestObject(“Dashboard/Catalog Page Title”), long_timeout)
2020-12-05 11:14:35.020 ERROR c.k.k.core.keyword.internal.KeywordMain - Unable to wait for object ‘Object Repository/Dashboard/Page Title’ to be visible (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to wait for object ‘Object Repository/CX1Objects/Catalogs Page/Catalogs Dashboard/Catalog Page Title’ to be visible
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain$runKeyword.call(Unknown Source)
Please enclose your codes with triple back ticks to form CODE BLOCK.
This will make
Your "code" 'here'
'Verify Exclusion Rules tab is displayed'
WebUI.verifyElementText(findTestObject('Setup/Create Page Header'), 'Exclusion Rules', FailureHandling.STOP_ON_FAILURE)
'Click on Create Button in Exclusion Page'
WebUI.click(findTestObject('Exclusion Page/Create_Save Button on Exclusion Page'))
'Wait for Page'
WebUI.waitForElementVisible(findTestObject('Dashboard/Catalog Page Title'), 60)
Is your URL of Application Under Test public to Internet? or is it your private one?
Your project has some Test Objects, I need them too.
Your problem seems to be difficult to dig into unless I can reproduce your project on my PC and run it.
Its a Private one.
When i debug the same test objects works. But while running it wont work
Then I would not be able to help you, sorry.
Ok No Problem. Thanks for your time.