There is textbox who is used for filtering records and also there is button whose name is also ‘Search’. When I used sendkeys keyword on textbox it works fine but when I click on Search button page loading screen comes. To handle this I have used wait for page load and wait for element is visible = Textbox but I received errors as follows:-
[Test Cases/Test Cases/Manage Connections/TC-MC-011 Verify that user is able to filter buyers or supplier FAILED because (of) Unable to send keys ‘WubsAuto’ to object ‘Object Repository/Manage Connections Section/Search Buyers_Suppliers Page/textbox_Search’ (Root cause: org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=63.0.3239.132)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.14393 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘WKSWUPUN0136’, ip: ‘192.168.0.102’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_102’
Driver info: com.kms.katalon.core.webui.driver.ExistingRemoteWebDriver
Capabilities {javascriptEnabled: true, platform: ANY, platformName: ANY}
Session ID: 1e317eafb0c2e874cd9c8ad8b3a59d96)
Test Cases/Test Cases/Manage Connections/TC-MC-011 Verify that user is able to filter buyers or supplier.run:50]
When I used hardcoded delay of 5 seconds after page loads it successfully send keys to textbox but as a good coding standards I dont want to use hardcoded delay. Can you please guide me how can I avoid above error and successfully send keys from my excel sheet to text box without using delay keyword.
I have same promlem woth uploads keys, a can’t upload file because: (Root cause: org.openqa.selenium.WebDriverException: unknown error: cannot focus element
I have same promlem woth uploads keys, a can’t upload file because: (Root cause: org.openqa.selenium.WebDriverException: unknown error: cannot focus element
There is textbox who is used for filtering records and also there is button whose name is also ‘Search’. When I used sendkeys keyword on textbox it works fine but when I click on Search button page loading screen comes. To handle this I have used wait for page load and wait for element is visible = Textbox but I received errors as follows:-
[Test Cases/Test Cases/Manage Connections/TC-MC-011 Verify that user is able to filter buyers or supplier FAILED because (of) Unable to send keys ‘WubsAuto’ to object ‘Object Repository/Manage Connections Section/Search Buyers_Suppliers Page/textbox_Search’ (Root cause: org.openqa.selenium.WebDriverException: unknown error: cannot focus element
(Session info: chrome=63.0.3239.132)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.14393 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘WKSWUPUN0136’, ip: ‘192.168.0.102’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_102’
Driver info: com.kms.katalon.core.webui.driver.ExistingRemoteWebDriver
Capabilities {javascriptEnabled: true, platform: ANY, platformName: ANY}
Session ID: 1e317eafb0c2e874cd9c8ad8b3a59d96)
Test Cases/Test Cases/Manage Connections/TC-MC-011 Verify that user is able to filter buyers or supplier.run:50]
When I used hardcoded delay of 5 seconds after page loads it successfully send keys to textbox but as a good coding standards I dont want to use hardcoded delay. Can you please guide me how can I avoid above error and successfully send keys from my excel sheet to text box without using delay keyword.
Test Cases/submit_request FAILED. Reason: com.kms.katalon.core.exception.StepFailedException: Unable to upload file ‘C:\Automation\st12693.en07.doc’ to object (Root cause: java.lang.IllegalArgumentException: Object is null)
_ at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)_
_ at_
well there is not much to catch locator by…hence it is not possible to use css or directly id…
Currently I’m capturing it by xpath: //*[@class=“mat-button-wrapper” and contains(text(), ‘Upload Original File’)]
in spy mode of katalon and browser elements I can find it easily with that xpath…but not with this uploadFile function
Using Inspect (right click on webpage) you can search for the Object in question by the xpath (//[@id=‘object’]). In my case I found that there were 2 versions of the object (1 of 2). By surrounding the xpath with parenthesis and indexing them ( **(//[@id=‘object’])[2]** ), I was able to see that the 1st one was ‘invisible’ and the 2nd one was displayed. So Katalon was finding the first and thus unable to interact with it. By setting my Test Object indexed at [2], my script worked.