INDEX

Getting started -basics for starting with WinTask

INDEX

Postby Yasir on Tue Feb 05, 2013 9:28 am

Hi,

I struggle with INDEX : on one of my webpage, html elements seem to vary between 'index' and 'index='2' in there location. Is there a way to fool proof this without getting into error codes?
Yasir
 
Posts: 18
Joined: Tue Jun 21, 2005 5:18 pm

Re: INDEX

Postby TechSupport on Wed Feb 06, 2013 8:51 am

Hello,

You will need to test the existence of the element before using it if it exists. The pseudo code would be:
If ExistHTMLElement("html descriptor for the element INDEX = 1") = 1 then
Click it
EndIf
If ExistHTMLElement("html descriptor for the element INDEX = 2") = 1 then
click it
EndIf

Regards.
WinTask Tech Support
TechSupport
 
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am


Return to Getting started

Who is online

Users browsing this forum: No registered users and 4 guests

cron