-2

i just tried to do URL requests with selenium like this

driver.get (example.com/)

but i confused how to do same requests with parameter, like i do with requests

params = {
  'name':'john-doe',
  'shop_id':'121323233443',
}

requests.get('example.com/', params=params)

perymerdeka
  • 104
  • 9

1 Answers1

1

request is a backend interaction library and selenium is an front end autoamtion library , you cannot explicitly send plain http calls using selenium. WOrk around is to use javascript executor in selenium to do http ajax calls using javascript inside browser. This not recommended as this just aover engineering design unless its sepcific required use case:

https://stackoverflow.com/a/5665291/6793637

PDHide
  • 10,919
  • 2
  • 12
  • 26