| || |
html link problem
i ahve clicked on a html link and following code is dispalyed.
Htmllink click "text=0024/25",....
when i playback the script the text will be changed and script fails.
how to make text uniquw.?
in 2001 rational introduced script assure to overocme this type of data aliation prolbem. can anyone help me how can we modify script?
i am using rational 2003.06.
it would be great if anyone a help me in writing code
it is very very ******.
u can email to email@example.com
Re: html link problem
Robot tries to pick up a property that it needs to recognise the object when it plays back.
The obvious one is the text of a link, as that is how real users recognise links usually.
However you could use any property of the link object.
You can see all the porperties available if you do an Object Property VP on the link.
For example, there might be an "id" property on the link (depends on how the site developers have done things) - the HTML source would then look something like
<A HREF="http://site.com/page.html" id="TheLinkID">0024/25</A>
And your Robot script could look like
HTMLLink Click "id=TheLinkID"
Typically you would need to change the Robot code by hand.
But if you're hitting this problem often, you can get Robot to change the default property it uses at record time :
In Robot, under Tools > GUI Record Options > Object Recognition Order
Select the object type "HTMLLink"
Then put the Text property last, and the ID first, or whatever order you prefer.
Note: I've seen your question posted before. I understand that it's frustrating to not get any answers. However some questions are pretty basic. People want to help, but nobody wants to actually do your job for you. I recommend taking a training on Robot, or finding some training material to get you started.