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 isSelected command is currently missing from the new Element API. To support this command, a new file named isSelected.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>').isSelected() and then run the test. This would result in an error right now, while if you replace isSelected() with getText(), it should work fine.
After adding the command implementation, the .isSelected() command should work fine and return a boolean promise.
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
isSelected
command is currently missing from the new Element API. To support this command, a new file namedisSelected.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>').isSelected()
and then run the test. This would result in an error right now, while if you replaceisSelected()
withgetText()
, it should work fine.After adding the command implementation, the
.isSelected()
command should work fine and return aboolean
promise.TODO
The text was updated successfully, but these errors were encountered: