Code Monkey home page Code Monkey logo

Comments (9)

alxlit avatar alxlit commented on May 13, 2024

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.

christian-bromann avatar christian-bromann commented on May 13, 2024

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.

AndrewRayCode avatar AndrewRayCode commented on May 13, 2024

I don't have any suggestions, after switching to the main library I found no reason to switch back.

from webdriverio.

christian-bromann avatar christian-bromann commented on May 13, 2024

That's ok!

from webdriverio.

ngokevin avatar ngokevin commented on May 13, 2024

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 waitFors. 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.

christian-bromann avatar christian-bromann commented on May 13, 2024

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.

ngokevin avatar ngokevin commented on May 13, 2024

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.

christian-bromann avatar christian-bromann commented on May 13, 2024

mhm interesting ... do you have an example script that can reproduce that?

from webdriverio.

ngokevin avatar ngokevin commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.