Description
The #IgnoreHTMLCase
system variable controls if HTML descriptors are case-sensitive or not.
Syntax
#IgnoreHTMLCase=0
or
#IgnoreHTMLCase=1
Remarks
If #IgnoreHTMLCase
is set to 0, its default value, HTML descriptors are found when the script replays, only if the case is the same as when the script has been recorded.
If this variable is set to 1, at execution, an HTML descriptor with some letters with a different case than when recorded is still found.
Examples
This script launches our website and clicks 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 this script fails.
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']") 'This line produces an execution error: HTML element not found
'But the script below runs without an error:
#IgnoreHTMLCase=1 'Ignore the case
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']")