18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Comparing the values of two different sites

GerganaGergana Members
edited July 2014 in Sahi Pro
Hello,

We just start test automation for one of our clients and we have the following problems.
We want to compare the values of same table in two different sites. We need to get them from site 1 and check if they are the same in site 2.
Another problem is that one of the columns contains dynamic values which are updated in 30sec.
Do you think that this can be done with Sahi Pro?

Thank you in advance.

Best Regards,
Gergana

Answers

  • Dynamic values can be handled with regular expressions and relational APIs.
    You can store the value1 from site1 in a variable like _set($var1, _cell(xy).textContent) or $var1=_getText(_cell(xy)) and compare it to site2 like _assertEquals(_getText(_cell(xy2)), $var1)

    Regards
    Wormi
Sign In or Register to comment.