Comments (4)
I've finally implemented this!
Now each callback gets two parameters. The first one is an error object which could look like this:
{
status: 7,
type: "NoSuchElement",
orgStatusMessage: "An element could not be located on the page using the given search parameters."
}
If there is no error, this parameter is null. The second one is the normal result parameter.
You are also able to pass a callback to each function now. For commands like click (gets no result from the selenium driver) it has the advantage that you are able to check if the command was successful.
from webdriverio.
@christian-bromann - When is the new release? 👍
from webdriverio.
@tunix probably this or next week
from webdriverio.
@christian-bromann - wohoo! :) great news, thanks!
from webdriverio.
Related Issues (20)
- [🐛 Bug]: creating a package from wdio config will result in compilation errors HOT 5
- [📖 Docs]: Deprecated Matchers are not marked as deprecated in the Expect documentation page HOT 2
- [🐛 Bug]: Error line incorrectly reported in the terminal HOT 2
- [📖 Docs]: How to configure tests using Chromium (NOT Chrome) browser HOT 11
- [💡 Feature]: Wdio spec reporter should exclude hook failures in test case pass fail count HOT 6
- [🐛 Bug]: element search commands like browser.$ and element.$ have incorrect types HOT 4
- [🐛 Bug]: refetching `WebdriverIO.Elements` in browser testing context doens't work HOT 2
- [💡 Feature]: Provide a public interface to receive the current spec file HOT 1
- [💡 Feature]: Introduce a `children` command that returns the children of an element as `WebdriverIO.ElementArray` HOT 1
- [🐛 Bug]: wdio log can not be redirected into outputDir HOT 1
- [💡 Feature]: Introduce a new interface to query elements HOT 4
- [💡 Feature]: Expose browser type when it is returned by remote in standalone mode HOT 11
- [💡 Feature]: Compatibility with ESLint flat config and more precise exported types for wdio ESLint driver HOT 4
- [🐛 Bug]: Rerun failed tests broken on circleCI with wdio 8 HOT 1
- [🐛 Bug]: Fetch multiple elements issue ($$ command) HOT 1
- [🐛 Bug]: Module '"webdriverio"' has no exported member 'ElementArray'. HOT 2
- [🐛 Bug]: reloadSession causes problem for selenium HOT 6
- Failed to download chromedriver due to 404 error HOT 20
- [🐛 Bug]: VSCode adds parentheses around methods during auto-completion HOT 3
- [🐛 Bug]: getLogs('browser') Function Not Working in Multiremote Mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriverio.