I am working with Web application.
i am clicking a link inside the frame and everytime i login the value of frame is changing.
Please suggest me how to handle this.
Is there any chance that we can skip the intermediate things like:Browser,Page,Frame and should directly go to link.
the code is as below:
Browser("ABC Login").Page("ABC - XYZ Information").Frame("XYZ_CONTAINER_STATUS532736"). Link("Click here to download").Click
After recording when i run the code again it fails.
Please reply soon.
Try descriptive programming and use regular expression for the Frame object.
Can you please explain lil bit more,as i am new and have never worked on descriptive programming and reg expression.
Browser("ABC Login").Page("ABC - XYZ Information").Frame("XYZ_CONTAINER_STATUS.*").Link ("Click here to download").Click
Also search on this forum about descriptive programming and regular expression
Sorry my mistake
Browser("title:=ABC Login").Page("title:=ABC - XYZ Information").Frame("name:=XYZ_CONTAINER_STATUS.*" ).Link("Click here to download").Click
You need to find on what is the pattern in the object property change.
Regular expression would be fine, but it will be better to have in a custom format than a generic format.
Go to Object repository for the object, click on the property value, there will be a checkbox for Reg ex, that can be used.
Else gkp has given a sample code for using reg ex within descriptive prgmng
-- Here to Learn and share ---