Coder Social home page Coder Social logo

Comments (2)

stevepryde avatar stevepryde commented on July 2, 2024

The ElementNotInteractable error comes directly from selenium so it's likely that the particular element you are attempting to send keys to (the searchInput field) is not currently interactable.

Looking at your site, the search input field isn't actually visible to the user until they click the search button first. So that is what your code needs to do. You will find this easier if you stick an id on the search button (one of the span elements I think). Then issue a click() to that element, and then the search input element should be interactable. Let me know how you go with that.

Not sure why it would have a long delay, I suspect that might be related to the implicit wait time used. I set it to 30s by default but you can change it in your code to suit your preference. See the set_*_timeout() methods on WebDriver.

from thirtyfour.

steadylearner avatar steadylearner commented on July 2, 2024

I forget that I had to click it first. Sorry, it's been a time that I used it and wanted to use with your crate because I find it very interesting.

I will test it again later and close the issue.

Thanks for the fast response.

from thirtyfour.

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.