Answered

Getting error message while trying to get a count from the page using Get_WebElement methog

I started getting error message "INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified." while trying to get a count from the page using Get_Web_Value method. This step was working before with no issues. We just upgraded Subject7 to version 8.13. XPath works as expected in the Developers Tool and returns count "15" as can be seen in the screenshot (count(//*[@class="list-group data-list-group scrolling-data-list-group"]/li))

 

 

 

0
4 comments
Avatar
Joseph Hamdan

Hi Vitaly,

Could you please send the URL where you used this command to perform a count?

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Vitaly Melnik

Joseph,

This is not publicly available application and still in development. I just checked and this method works fine on other pages but it returns error specifically on the page i need to test. I think this issue is on the page. I'll check with developers.

Thank you,

0
Comment actions Permalink
Avatar
Vitaly Melnik

Spoke with developer and he can't find anything related to XML on the page or in the code. Any ideas why this specific error may be thrown by the Proof tool? What behind the scene in your code could be requesting XML to do some kind of validation? Where this character error could occur? Any suggestions, because we kinda stuck?

0
Comment actions Permalink
Avatar
Vitaly Melnik

Updates. Developer find some extra characters in the HTML code. There was no issue on the front end but I guess Proof tool could not parse the code and was giving this error. Now it works as expected.

0
Comment actions Permalink

Please sign in to leave a comment.