Beginner Questions about Robot
I am testing a web application that creates barcodes for inventory that is entered. The barcodes are then listed in an html table as in the following:
Inventory ID Inventory Description
Barcode 1 Inventory 1
Barcode 2 Inventory 2
Each one of these barcodes is a link to the data entry page for the inventory. When recording the script to select the Barcode for the inventory that I have just created the Barcode value is hard coded into my robot GUI script. I am relatively new to robot and would like to advance my skillset for being able to create more dynamic test scripts and I have been unable to accomplish this.
I have tried many variations of the SQAGetProperty call and have even worked with the IBM tech support and was unable to receive an answer. I have the following questions taht I believe will move me in the right direction:
1. Where do I find the HTMLID for my table?
2. What is the correct syntax for retreiving the innertext of table element using columns and rows?
3. Does the following syntax look at all correct? Result=SQAGetProperty("Type=HTMLTable;HTMLId=dgInv entorySearchResults;\;col=1;row=1","innerText",Inv _ID)
4. Lastly, I have been running this to see if I can even find the table and so far have been unsuccessful, how can I use Robot to get the correct property information to pass into the SQAGetProperty function?
Re: Beginner Questions about Robot
Did you try with SQAGetChildren Property. If not try now.I have enclosed the functions for sample web page as www.google.com. have a look in to that. following chnages needs to be done before attempt any
1.Create a text file as "TempFile.txt" in C:\
2.In the function Change your Window name (i have given google window name)
3.Start the execution
In the tempfile have list of controls which are in the web page along with tagname,value,object type and inner text.
from those inputs identify whether controls present which you are looking for. If you can able to retrieve all these controls which is in your page, your job is simple. identify where it occurs and proceed.
Sample output of C:\Tempfile.txt as shown below
"Object Type :HTMLTable"
"Object Text :Web Images Groups News Scholar Desktop more »"
"Object Name : TABLE"
"Object Value: "