Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click a button to get next page
#4
(Apr-14-2018, 05:05 PM)ian Wrote: This button's type is 'submit'. I'm wondering if I can use requests.Session().Post
Submit a form requests is possibly with Requests.
Example with this form Pen
With Requests:
import requests
 
headers = {'Content-type': 'application/x-www-form-urlencoded'}
data = {"email": "[email protected]"}
response = requests.post('http://127.0.0.1:5000/email', headers=headers, data=data)
So this example i have run before,it will send data to a Flask and catch with email = request.form['email'] on server.
Reply


Messages In This Thread
Click a button to get next page - by ian - Apr-14-2018, 03:32 PM
RE: Click a button to get next page - by snippsat - Apr-14-2018, 03:44 PM
RE: Click a button to get next page - by ian - Apr-14-2018, 05:05 PM
RE: Click a button to get next page - by snippsat - Apr-14-2018, 06:45 PM
RE: Click a button to get next page - by ian - Apr-14-2018, 08:57 PM
RE: Click a button to get next page - by snippsat - Apr-15-2018, 07:42 AM
RE: Click a button to get next page - by ian - Apr-15-2018, 06:42 PM
RE: Click a button to get next page - by snippsat - Apr-15-2018, 10:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cant click button by script at page michael1834 1 2,275 Dec-08-2023, 04:44 PM
Last Post: SpongeB0B
  Click on a button on web page using Selenium Pavel_47 7 7,185 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  button click error rafarangel 2 3,996 Feb-11-2021, 08:19 PM
Last Post: buran
  Unable to click element in web page Kalpana 0 2,357 Jun-25-2020, 05:20 AM
Last Post: Kalpana
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 4,907 Jun-07-2020, 04:42 PM
Last Post: samlee916
  How to click facebook message button JanelleGuthrie 2 3,227 May-14-2020, 06:02 PM
Last Post: Larz60+
  use Xpath in Python :: libxml2 for a page-to-page skip-setting apollo 2 4,645 Mar-19-2020, 06:13 PM
Last Post: apollo
  Contact form button click action Man_from_India 1 3,501 Feb-01-2020, 06:21 PM
Last Post: snippsat
  HOWTO? Login DSL Modem with Python Requests: need Click "Apply" Button Webtest 4 10,149 Aug-20-2019, 04:03 PM
Last Post: johnmina
  Selenium click on popup button??? GuJu 7 12,486 Jul-20-2019, 09:21 AM
Last Post: Nizam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020