Giter Site home page Giter Site logo

Comments (3)

mohijarada2017 avatar mohijarada2017 commented on September 18, 2024 1

test_python_example_sourcecodes.zip

Thanks Natesh. I already tried out with different HTML forms with name attribute or without, and your API does not catch the placeholder, for the targeted input field I would like to web automate it.

For HTML elements with id attribute, it's working perfectly.

There are a lot of projects with HTML forms without ID or NAME HTML attributes, then how webbot API will capture these?

Attached "test_python_example_sourcecodes.zip", which contains a sample example of Python (webbot_5_example_localhost_html_form_submission.py) HTML webbot auto form submission, using your API. Inside the zip file also:
a "test.html", where you can test HTML form with ID or without ID like using HTML input name attributes, as said before with HTML input ID attributes your API works perfectly and webbot web automation will work smoothly, but using HTML name attribute with your API 'into' does not capture the HTML input placeholder at all!!

#web.type(username_str, into = 'firstname')    
#web.type(userpwd_str, into = 'lastname')

then you can un-comment my code line Python two lines actually and you can run it under Python default HTTP web server:

python3.7 -m http.server

you can check it by yourself also.

from webbot.

nateshmbhat avatar nateshmbhat commented on September 18, 2024

the into parameter is used to specify the field text or placeholder that you see on the website , if it has an id , then specify the id directly using id parameter to the type method like so :

web.type('password_value', id='password_field_id')

if it doesn't have id , u can still give
web.type('password_value', into='Password')
since it has a placeholder called 'Password'

from webbot.

nateshmbhat avatar nateshmbhat commented on September 18, 2024

Thank u so much. I will definitely work on a fix for this

from webbot.

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.