Code Monkey home page Code Monkey logo

Comments (4)

hemberger avatar hemberger commented on July 30, 2024

Sorry for the excessively slow reply to this issue! I see your point about having no way to specify that no submit button should be simulated. If this is still relevant to you, we can certainly consider an enhancement here. Maybe the simplest thing would be to skip selecting a submit if btnName=False (to avoid needing to handle all the combinations of btnName with some additional boolean flag):

if btnName is not False:
    self.form.choose_submit(btnName)

You can also use Browser.submit directly, but obviously that doesn't help if you want to use StatefulBrowser features with this.

from mechanicalsoup.

alexreg avatar alexreg commented on July 30, 2024

@hemberger Thanks for getting back to me. Yes, I'd certainly still be keen to see this feature implemented. The way you've suggested seems like a very simple change, and would no doubt work for me.

from mechanicalsoup.

moy avatar moy commented on July 30, 2024

If you have time to work on it, pull-requests are welcome (the code itself should be straightforward, but there should be a test which may require a bit more time to write). We may get time to implement it ourselves, but at least I have very limited time for MechanicalSoup :-(.

from mechanicalsoup.

alexreg avatar alexreg commented on July 30, 2024

@moy Okay, sure.

from mechanicalsoup.

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.