Execution depends on search result condition

Advanced programming using WinTask scripting language

Execution depends on search result condition

Postby Edwin on Mon Jan 13, 2014 10:39 am

Hi,
In case we want to search something from web: If there is result set found, it will have html button A display, else there is html button B display. In WinTask, are there any ways to check which buttons to display so that the execution of WinTask depends on search result condition?
Edwin
 
Posts: 11
Joined: Fri Sep 30, 2005 10:48 am

Re: Execution depends on search result condition

Postby TechSupport on Tue Jan 14, 2014 9:18 am

Hello,

Yes, you can use ExistHTMLElement function:
If ExistHTMLELement("HTML descriptor for button A") = 1 then
msgbox("button A there")
Else
msgbox("button A does not exist")
EndIf

Best regards.
WinTask Tech support
TechSupport
 
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am


Return to Scripts programming

Who is online

Users browsing this forum: No registered users and 5 guests

cron