I am using Truclient protocol, I need to validate a specific text which is displaying in 2 different locations depending on the data. My test should pass if that text dispalys in any of those 2 locations. How can I write java script code to validate this situation.
Please let me know if my question is not clear.
The question is not 100% clear. Can you please clarify it?
Thank you Shlomi,
I need to verify whether a graph is loaded or not, If graph is loaded then I can validate some text on that window. [for this verify on object text will work], some times there will be no data to produce the graph and it says 'Data is not present', this is also a valid scenario. [bcaz in some cases, user are new and they might have not having any data].
I need to validate a text when graph is present[xpath location is different from 'Data is not present' object] and also in some cases 'Data is not present',
Since both of them are in different places [frames], I am in ambiguity to verify.