Description
The #UsePageExact
system variable specifies if an exact match or a fuzzy match is used for web page recognition.
Usage
Used to force an exact recognition of a web page when all the pages of a website start with the same characters.
Syntax
#UsePageExact=0
#UsePageExact=1
Parameters
0
: Uses fuzzy matching for web page recognition (default).
1
: Forces exact matching for web page recognition.
Remarks
When #UsePageExact=0
, at execution of a UsePage
function, WinTask looks for a page title that starts with the same characters specified in the UsePage
statement. If a matching page title is still not found after the fuzzy match, Error Handling mechanism is used.
When #UsePageExact=1
, WinTask looks for a page with the exact same title as specified in the UsePage
statement. If the exact page title is not found, Error Handling mechanism is used.
See also
UsePage
Examples
' Uses fuzzy matching (default behavior)
StartBrowser("IE", "www.wintask.com/demos")
UsePage("WinTask Demonstration Pages")
ClickHTMLElement("A[INNERTEXT= 'Same Title Pages']")
UsePage("Page With another title")
WriteHTML("INPUT TEXT[NAME= 'company']", "My Company")
' Forces exact matching
StartBrowser("IE", "www.wintask.com/demos")
#UsePageExact=1
UsePage("WinTask Demonstration Pages")
ClickHTMLElement("A[INNERTEXT= 'Same Title Pages']")
UsePage("Page With another title")
WriteHTML("INPUT TEXT[NAME= 'company']", "My Company")
' Successful match with exact matching
StartBrowser("IE", "www.wintask.com/demos")
#UsePageExact=1
UsePage("WinTask Demonstration Pages")
ClickHTMLElement("A[INNERTEXT= 'Same Title Pages']")
UsePage("Page")
WriteHTML("INPUT TEXT[NAME= 'company']", "My Company")