#IgnoreHTMLCase
System variable - Web functions.
The #IgnoreHTMLCase system variable enables/disables character case in HTML descriptors.
Syntax
#IgnoreHTMLCase = 0
or
#IgnoreHTMLCase = 1Remarks
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 DOWNLOAD your 30-day trial now! below the product picture:
StartBrowser("IE", "www.wintask.com")
UsePage("Macro and Data Extraction with WinTask - the automation software for Windows and internet")
ClickHTMLElement("A[INNERTEXT= 'DOWNLOAD your 30-day']")
If we change the case of the HTML descriptor DOWNLOAD in Download, 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("Macro and Data Extraction with WinTask - the automation software for Windows and internet")
ClickHTMLElement("A[INNERTEXT= 'Download your 30-day']")