I have a scenario where I need to call a rest API in my python selenium script but I am not sure how to do it.
If anyone as idea on it can you please help me out .
The API used is to delete the phone number.
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
Selenium just controls the browser, it is not intended to make rest calls. Selenium only lets you to
GET particular URL (as you do when you request a regular html page from a server) using
However I believe this is not your case because implementing data editing using GET requests is a sort of bad practice since it exposes high security risks.
So you should use dedicated libs like João advices.