You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi so Im trying to use Action.Find but Im running into an error.
Here is what Im trying to do
` 16:51:28.334 [DEBU] [TestSuite Web] [Verify-Pull-Status-is-Success] [web] result of runTestStepExecutor: &{Find:1 HTML: TimeSeconds:3.630250648 Title:opHA 3.6.2 URL:http://10.10.10.131/en/omk/opHA Text: Value:}
Jun 29 16:51:28.334 [INFO] [TestSuite Web] [Verify-Pull-Status-is-Success] Step #4 content is: {"action":{"find":{"locator":"XPATH","selector":"//div[@id='peers-list'][1]//table/tbody/tr[2]//td[2]//span[contains(text(), 'Success')]"}},"type":"web"}
Jun 29 16:51:28.335 [ERRO] [TestSuite Web] [Verify-Pull-Status-is-Success] Errors:
Jun 29 16:51:28.335 [ERRO] [TestSuite Web] [Verify-Pull-Status-is-Success] �[33mTestcase "Verify Pull Status is Success", step #4-0: 1 error(s) decoding:
'Action.Find' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[locator:XPATH selector://div[@id='peers-list'][1]//table/tbody/tr[2]//td[2]//span[contains(text(), 'Success')]]' (webtest.yaml:41)�[0m
Jun 29 16:51:28.397 [INFO] [TestSuite Web] [Verify-Pull-Status-is-Success] Ending testcase
Jun 29 16:51:28.397 [INFO] [TestSuite Web] Ending testsuite
Jun 29 16:51:28.397 [DEBU] final status: FAIL`
It seem no matter if I use CCS or XPATH I get the same error and also it doesnt matter what selector or locator I use.
Im using chrome 14 and chromedriver 14
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi so Im trying to use Action.Find but Im running into an error.
Here is what Im trying to do
![image](https://private-user-images.githubusercontent.com/48608310/249695392-f09739e9-b8aa-4620-b2de-034065c5ca49.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMDg1NjIsIm5iZiI6MTcxOTEwODI2MiwicGF0aCI6Ii80ODYwODMxMC8yNDk2OTUzOTItZjA5NzM5ZTktYjhhYS00NjIwLWIyZGUtMDM0MDY1YzVjYTQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAyMDQyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0MzNkYmVmZGM0YTg1Yzg0NTcwZWQxN2RkNTM3ZGNlZjMyNzhjMTc1NGFkMTllMzFmZjI3Y2E3MmMzMDY2ZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.u451ROJWF_xBUCcq5kSf1Idkk29nIo3Jf-CY515YnSs)
` 16:51:28.334 [DEBU] [TestSuite Web] [Verify-Pull-Status-is-Success] [web] result of runTestStepExecutor: &{Find:1 HTML: TimeSeconds:3.630250648 Title:opHA 3.6.2 URL:http://10.10.10.131/en/omk/opHA Text: Value:}
Jun 29 16:51:28.334 [INFO] [TestSuite Web] [Verify-Pull-Status-is-Success] Step #4 content is: {"action":{"find":{"locator":"XPATH","selector":"//div[@id='peers-list'][1]//table/tbody/tr[2]//td[2]//span[contains(text(), 'Success')]"}},"type":"web"}
Jun 29 16:51:28.335 [ERRO] [TestSuite Web] [Verify-Pull-Status-is-Success] Errors:
Jun 29 16:51:28.335 [ERRO] [TestSuite Web] [Verify-Pull-Status-is-Success] �[33mTestcase "Verify Pull Status is Success", step #4-0: 1 error(s) decoding:
Jun 29 16:51:28.397 [INFO] [TestSuite Web] [Verify-Pull-Status-is-Success] Ending testcase
Jun 29 16:51:28.397 [INFO] [TestSuite Web] Ending testsuite
Jun 29 16:51:28.397 [DEBU] final status: FAIL`
It seem no matter if I use CCS or XPATH I get the same error and also it doesnt matter what selector or locator I use.
Im using chrome 14 and chromedriver 14
Any help would be amazing
Ken
Beta Was this translation helpful? Give feedback.
All reactions