Coder Social home page Coder Social logo

Comments (6)

corevo avatar corevo commented on July 23, 2024 1

Since of reasons I mentioned above, how is this change?
screen shot 2017-11-22 at 16 32 15

from selenium-ide.

corevo avatar corevo commented on July 23, 2024

It does click only once, but it retries the click until the element appears, or fails after 30 seconds due to timeout.
Once it successfully clicks it logs success or failure and moves forward.
I thought it was better to log the amount of retries, do you think I should log it once, or in a different manner?

from selenium-ide.

barancev avatar barancev commented on July 23, 2024

In WebDriver, waits are tied to "find" operations. If you want to log attempts, it would be more natural to see something like
"trying to find..."
"trying to find..."
"trying to find..."
"clickAt"
in the log.

If you want to change this logic, it should be negotiated and approved by the dev team.

from selenium-ide.

corevo avatar corevo commented on July 23, 2024

I'm wondering what's the best way to achieve this experience.
Currently the extension tries to communicate the command to the tab under test, to which we have 3 results.

  • The command was successfully executed
  • The element was not found
  • Other errors (tab was closed mid-test, etc)

Thus, by the time I know wether or not the element was found, if it was found, then the click already went through.
I can say, trying to find instead of executing, and say that it was executed instead of simply success,
But really, what the extension is trying to do, is to execute, and not simply find, which we do not communicate that way in the logs.

Do you think that's a problem, or to change as I mentioned?

from selenium-ide.

barancev avatar barancev commented on July 23, 2024

There are more than three possible outcomes.

  1. success
  2. element not found,
  3. element found, but operation failed, because element is not appropriate (e.g. an attempt to select from drop-down menu, but the found element is not 'select') or its state is not appropriate (e.g. it is invisible), or element is stale, removed from the DOM (yes, this can happen too)
  4. other errors

In all cases except for 1) a user would like to see what happened.

It's important for debugging. If I see an element can be found -- it must be a wrong locator. If I see the element can't be clicked -- I know the locator is OK, but the element is not ready to interact with, and I have to change the scenario.

from selenium-ide.

corevo avatar corevo commented on July 23, 2024

In addition to the previous comment, the extension will now log if it's waiting for the Element to appear, or if it has reached a timeout waiting for it to appear

from selenium-ide.

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.