Logic when a webpage displays a warning

Getting started -basics for starting with WinTask

Logic when a webpage displays a warning

Postby Edwin on Thu Jan 10, 2013 11:56 am

We are trialing Wintask and are stuck as we are unable to get past a problem, which we think it could possibly resolve.

I wish to export and save data from a website to a file, this is fine when there is data to save.

The problem occurs when there is no data to save, the webpage puts up a warning

"No data could be located."

What I was hoping to achieve was to create some logic that would run the data export query and if the page reports: "No data could be located." it would close the browser if there is data to export then save that data to a file and move on.

Any hints or tips here would be appreciated.
Posts: 11
Joined: Fri Sep 30, 2005 10:48 am

Re: Logic when a webpage displays a warning

Postby TechSupport on Mon Jan 14, 2013 10:19 am


You need to use ExistHTMLElement function. With Spy tool, you paste the html descriptor for "No data could be located" as argument for the ExistHTMLElement, and then you can use an If
If ExistHTMLElement[.....] = 1 then

Best regards.
WinTask Tech Support
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 2 guests