I've checked out your fine user guide on using Selenium with SmartClient and have already managed to make some tests.
But now I'm wondering if it's possible to locate a Dialog/Form/ListGrid/etc without the need to supply the explicit ID?
This is how it works now:
scLocator=//Dialog[ID="isc_Dialog_0"]/okButton/
But I wonder if I can locate a Dialog without specifying an explicit ID?
The following locator returns "_1.match("ID=\\\"(.*)\\\"") is null":
scLocator=//Dialog[1]/okButton/
If it's impossible to locate an arbitrary Dialog, is it at least possible to define an explicit ID to SC.warn()?
EDIT: Also, why can't I use the standard Selenium locators such as name, link, identifier...?
To be exact, I tried putting "name=userTI" into the Target field and clicked the Find button. It located the textfield successfully. But when I ran the test, it failed with this error:
[error] Unexpected Exception: QueryInterface -> function QueryInterface() { [native code] }, message -> Security Manager vetoed action, result -> 2153185319, name -> NS_ERROR_XPC_SECURITY_MANAGER_VETO, filename -> http://localhost/MBT/MBT/sc/modules/ISC_Core.js, lineNumber -> 1403, columnNumber -> 0, location -> JS frame :: http://localhost/MBT/MBT/sc/modules/ISC_Core.js :: isc_c_EventHandler__canAccessNativeTargetProperties :: line 1403, inner -> null, data -> null, initialize -> function initialize() { [native code] }
But now I'm wondering if it's possible to locate a Dialog/Form/ListGrid/etc without the need to supply the explicit ID?
This is how it works now:
scLocator=//Dialog[ID="isc_Dialog_0"]/okButton/
But I wonder if I can locate a Dialog without specifying an explicit ID?
The following locator returns "_1.match("ID=\\\"(.*)\\\"") is null":
scLocator=//Dialog[1]/okButton/
If it's impossible to locate an arbitrary Dialog, is it at least possible to define an explicit ID to SC.warn()?
EDIT: Also, why can't I use the standard Selenium locators such as name, link, identifier...?
To be exact, I tried putting "name=userTI" into the Target field and clicked the Find button. It located the textfield successfully. But when I ran the test, it failed with this error:
[error] Unexpected Exception: QueryInterface -> function QueryInterface() { [native code] }, message -> Security Manager vetoed action, result -> 2153185319, name -> NS_ERROR_XPC_SECURITY_MANAGER_VETO, filename -> http://localhost/MBT/MBT/sc/modules/ISC_Core.js, lineNumber -> 1403, columnNumber -> 0, location -> JS frame :: http://localhost/MBT/MBT/sc/modules/ISC_Core.js :: isc_c_EventHandler__canAccessNativeTargetProperties :: line 1403, inner -> null, data -> null, initialize -> function initialize() { [native code] }
Comment