You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The isEnabled command is currently missing from the new Element API. To support this command, a new file named isEnabled.js needs to be added inside lib/api/web-element/commands directory, whose content should be similar to the get* command files present in the same directory.
The argument passed to this.runQueuedCommandScoped in these files is the name of the corresponding method to be called from the lib/transport/selenium-webdriver/method-mappings.js file.
Steps to reproduce
Go to any test file and try to add const result = await browser.element('<selector>').isEnabled() and then run the test. This would result in error, while if you replace isEnabled() with getText(), it should work fine.
TODO
Add missing command
Fix JSDoc of the command
Add tests for the new command
Add types for the new command
The text was updated successfully, but these errors were encountered:
Description of the bug/issue
The
isEnabled
command is currently missing from the new Element API. To support this command, a new file namedisEnabled.js
needs to be added insidelib/api/web-element/commands
directory, whose content should be similar to theget*
command files present in the same directory.The argument passed to
this.runQueuedCommandScoped
in these files is the name of the corresponding method to be called from thelib/transport/selenium-webdriver/method-mappings.js
file.Steps to reproduce
Go to any test file and try to add
const result = await browser.element('<selector>').isEnabled()
and then run the test. This would result in error, while if you replaceisEnabled()
withgetText()
, it should work fine.TODO
The text was updated successfully, but these errors were encountered: