Giter Club home page Giter Club logo

Comments (3)

AutomatedTester avatar AutomatedTester commented on June 20, 2024

I can't see any changes that have happened in this area.

Please can you tell us what browser you were using? Is there an example site that we can reproduce this?

Are you using react, there is an edge case where the state management in react can cause problems with setting the value

from nightwatch.

garg3133 avatar garg3133 commented on June 20, 2024

If you look at the official doc for setValue, it was always meant to replace the contents of the input field by clearing them first. But due to some issue on WebDriver side, it wasn't working properly on some websites while it did on others.

So, we added a fallback for the clear command in #4035 to always clear the field by sending the required number of backspaces to the field if the WebDriver clear method does not work.

To append to the existing value in the field, you should use the sendKeys command.

While this change is already mentioned in the changelog for 3.6.1, maybe we should also highlight all the commands that it affects.

from nightwatch.

xuezhma avatar xuezhma commented on June 20, 2024

got it thank you. i personal like .setValue() clearing the old value better than appending to it. just wanted to confirm it is the expect behavior.

+1 it would be great to mention the impacted commands on the release notes

from nightwatch.

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.