I am retrieving the text from a window using object data (sqagetproperty doesn't return anything). The text in it contains order number which keeps on changing. Can I use regular expression or wild characters in this?
I have a window which is like a dialog box. I need to get the text present inside it. I can do so only using object data. Now, the issue is the text keeps changing. Eg "The order no is 2. Do you wish to continue?." If I run the same script again, then the text changes to "The order no is 3. Do you wish to continue?. "
If I try to verify using object data, then it will obviously fail. Is there are a way in which wild characters can to be used in object data or is there another way to verify this.
The window is a rad window. The text is inside html table but the problem is that it id identified using an index. This index changes according to the window on each it is displayed because of many tables present in the main window.
If the ID of a table keeps changing ask you development team to ID the tables.
The reason why it changes is Robot keeps a running count of objects it finds without IDs. When it finds a new object of that type (table for instance) that is not IDd it will give it a new index number so that it knows the difference.
Since you are talking about HTML tables in this case I would suggest reading about the DOM. Go to the Yahoo Robot Group and download the IE_Util utilities that help with getting the DOM connected to Robot (it's just an object) and reading the table data yourself.
I got the solution because of sqagetchildren. Well i didnt use sqagetchildren but mentioned the entire path i.e from the frame to the html table in sqagetporperty & got the text....This is so cool. [img]/images/graemlins/cool.gif[/img]