Page 1 of 1

GetInnerHtml

Posted: Wed Nov 30, 2016 6:29 pm
by audatest
Hi Ranorexers,

i am trying to do the following;
1. extract / get access to th the contents of a table on a webpage via GetInnerHtml
2. then use Regex to validate certain contents of the table

Using the spy i noticed "GetInnerHtml" works fine, but im not sure where the information is stored during testrun and how to access it and use it for the validation i need.

any help form of help will be very appreciated

Re: GetInnerHtml

Posted: Tue Dec 06, 2016 11:24 am
by odklizec
Hi,

Please upload a Ranorex snapshot (not SCREENSHOT) of the table in question and also the xpath pointing to the element you want to access. It's pretty hard to suggest something reliable without (at least) snapshot. Small sample app/html sample would be even better, but in this case, snapshot should be just fine.

Also, are you sure there is not a better way to validate the content of the table/cell than getting inner HTML code from entire table? It sounds a bit like overkill/not very reliable solution? ;) Just post the snapshot and maybe we can suggest a better/more reliable way to validate the table?