We have elements that are dynamically hidden in our product. If isElementPresent is used, it always returns true regardless of whether the element is on the screen or not. Is there some other way if testing this? We basically want to test that the element is getting hidden when a button is pressed or a condition is met in the server-side
Announcement
Collapse
No announcement yet.
X
-
If you need to emulate this in 3.0, you could use getElement() then use DOM-level techniques to check for visibility.
Comment
-
There's a couple of questions regard 8.3d build:
1) Method waitForElementClickable() that appears in documentations (http://www.smartclient.com/smartgwtee-latest/javadoc/com/smartgwt/client/docs/UsingSelenium.html) does not exist in user-extensions.js - is it only available for SmartGWT?
2) We need details how method isElementClickable() (in user-extensions.js) works and an examples how the method can be used. Is there documentation somewhere for this?
Comment
-
Selenium will automatically create several commands whenever a function of the form:Originally posted by acarur01 View PostThere's a couple of questions regard 8.3d build:
1) Method waitForElementClickable() that appears in documentations (http://www.smartclient.com/smartgwtee-latest/javadoc/com/smartgwt/client/docs/UsingSelenium.html) does not exist in user-extensions.js - is it only available for SmartGWT?
Selenium.prototype.isXXX()
is defined in user-extensions.js; one of those is the function waitForXXX(). That command then becomes legal in Selenium HTML scripts, and is visible from within Selenium IDE. If you open Selenium IDE with our user extensions, you should see the command waitForElementClickable() available.
The best documentation for waitForelementClickable() is the SC reference doc for Autotest.waitForElementClickable(). The only difference is that, with the Selenium HTML command, you have to pass an scLocator rather than an element (which is allowed for AutoTest.waitForElementClickable().) An example of using this command is provided in the Selenium User Guide, which is also in the SC reference docs under usingSelenium. (There is some kind of formatting issue with the text in HTML causing a few sentences to be repeated, but just ignore that.)Originally posted by acarur01 View Post2) We need details how method isElementClickable() (in user-extensions.js) works and an examples how the method can be used. Is there documentation somewhere for this?
Comment
Comment