#IgnoreHTMLCase

System variable - Web functions.

The #IgnoreHTMLCase system variable enables/disables character case in HTML descriptors.

Syntax

#IgnoreHTMLCase = 0
or
#IgnoreHTMLCase = 1

Remarks

If this variable is set to 0, at execution, HTML descriptors are found only if the case is the same as when recorded. It's the default value.

If this variable is set to 1, at execution, an HTML descriptor with some letters with a different case that when recorded is found.

Example

In Recording mode, on main WinTask Web page, clicking the link How it Works in the left menu:

StartBrowser("IE", "www.wintask.com")

UsePage("WinTask - Automation software and Task Scheduler. Macro software with Macro Recorder")

ClickHTMLElement("A[INNERTEXT= 'How It Works']")

 

If we change the case of the HTML descriptor How It Works in how it works, at replay the script fails with the error HTML element not found, but the script below runs:

#IgnoreHTMLCase=1

StartBrowser("IE", "www.wintask.com")

UsePage("WinTask - Automation software and Task Scheduler. Macro software with Macro Recorder")

ClickHTMLElement("A[INNERTEXT= 'how it works']")