Comments (9)
I have not had the same experience with the slowness, but I agree that how the queue works and how exceptions are handled could be improved (e.g. using promises). If you do not supply a callback it does, in fact, just eat errors [1]
[1] https://github.com/camme/webdriverjs/blob/master/lib/utils/QueueItem.js#L56
from webdriverio.
Hi @delvarworld
sorry for my late response. I'm working on the error handling in webdriverjs. Do you have any suggestions for improvements?
I can't really imagine that webdriverjs is sooo slow. Actually it works like all the other libraries: sending JSONWire requests to a selenium server and operate with the response.
from webdriverio.
I don't have any suggestions, after switching to the main library I found no reason to switch back.
from webdriverio.
That's ok!
from webdriverio.
I also have this issue where WebdriverIO is slow. Gonna try to use the selenium lib, but just chiming in.
I am using Webdriver remote with SauceLabs, and doing waitFor
s. When looking at the SauceLabs screencast, the page is fully loaded, but the waitFor
hangs doing nothing for 3 minutes even though the elements are there.
from webdriverio.
You don't need to use waitFor after opening an url. Selenium waits automatically until page is fully loaded. I haven't experienced a general slow experience at all using WebdriverIO.
from webdriverio.
It became perceivably faster once I called .screenshot()
at the end? Maybe it was waiting for another command. My Sauce Labs tests went from 3min to 40sec about.
from webdriverio.
mhm interesting ... do you have an example script that can reproduce that?
from webdriverio.
Sorry for the slow response. I compared two webdriver clients where one ends with a .waitForExist
and one ends with a .waitForExist + .screenshot
. SauceLabs didn't consider .waitForExist
a command and was waiting 90 seconds for more. Though I think that is expected so it's not actually an issue.
from webdriverio.
Related Issues (20)
- [🐛 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
- [🐛 Bug]: Webdriver-io cannot run in selenium standalone mode HOT 4
- [🐛 Bug]: afterTest hook is getting called with wrong test when test is timed out 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.