RefreshWebPageInfo |
Top Previous Next |
×V4.1Ø
Syntax - RefreshWebPageInfo
Description: As an optimization, EMUE tracks the current web document (web page, frame, or pop-up window) information, and attempts to use it again the next time the user attempts to access a web element through EMUE. If an element does not appear in the previous document, EMUE looks for the element in all other available documents. If the element being requested does appear in the document that was referenced last and that document is still in the browser, even if it is not visible, or is an open pop-up window, EMUE may attempt to access the element in the previous document rather than the element that is in the new document. This is because the element appears in both documents and EMUE is still referencing the previous document. This scenario is common in left-tabbed pages in Soarian or in cases where there are multiple pop-up windows. One way to avoid this problem, is to perform a screen check to ensure that the script is on the desired page. This is typically done using the WebElementExists test and should be used on an element that is unique to the document. If EMUE first references something unique to the current document, EMUE will continue to reference that document rather than a previous one. Alternatively, the RefreshWebPageInfo command can be used to force EMUE to identify a new document rather than whichever document had been identified previously.
Soarian SmartUI: No Chrome: No
Sample: RefreshWebPageInfo
|