Unable to click on search box webelement after the page loads every time script fails
Please follow the advice below, then we might be able to help you better:
User07 said:
Unable to click on search box webelement after the page loads every time script fails
http://https//dcp-int.mercedes-benz.com/de-de/collection/
08-30-2018 04:24:43 PM - [END] - End action : waitForJQueryLoad
08-30-2018 04:24:43 PM - [START] - Start action : click
08-30-2018 04:24:43 PM - [INFO] - Finding Test Object with id ‘Object Repository/null’
08-30-2018 04:24:43 PM - [INFO] - Finding Test Object with id ‘Object Repository/’
08-30-2018 04:24:43 PM - [INFO] - Checking object
08-30-2018 04:24:43 PM - [WARNING] - Test object with id ‘Object Repository/null’ does not exist
08-30-2018 04:24:43 PM - [WARNING] - Test object with id ‘Object Repository/’ does not exist
08-30-2018 04:24:46 PM - [FAILED] - Unable to click on object (Root cause: java.lang.IllegalArgumentException: Object is null)
08-30-2018 04:24:46 PM - [END] - End action : click
08-30-2018 04:24:46 PM - [FAILED] - Test Cases/SmokeTest/Tc_001_AdvancePayment FAILED because (of) Unable to click on object (Root cause: java.lang.IllegalArgumentException: Object is null)
08-30-2018 04:24:46 PM - [END] - End Test Case : Test Cases/SmokeTest/Tc_001_AdvancePayment
my xpath //input[@id=‘searchTerm’]
Thanks for the extra info.
Can you show us the Test Object that is causing the issue? You can paste a screenshot.
Note the error is saying the TO does not exist:
08-30-2018 04:24:43 PM - [INFO] - Finding Test Object with id ‘Object Repository/null’
08-30-2018 04:24:43 PM - [INFO] - Finding Test Object with id ‘Object Repository/’
08-30-2018 04:24:43 PM - [INFO] - Checking object
08-30-2018 04:24:43 PM - [WARNING] - Test object with id ‘Object Repository/null’ does not exist
You might also pay attention to points 2 and 3:
2 - Frequently, we need to see the underlying HTML of the page.
Post the relevant section of HTML in your first request for help. If
you are asked to post it later, you wasted your own time as well as
ours.3 - We need to see the test case code you are having difficulties with.
Post the relevant lines of code in your first request for help. If you
are asked to post it later, you wasted your own time as well as ours.