Current time: 09-26-2020, 07:52 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
perform a request from a script
02-19-2020, 12:13 AM
Post: #1
perform a request from a script
I'm using the RESTful API and I want to make an API call in order to authenticate before running my test, is it possible to execute that request using the script param? or do I have to navigate to a login screen?
Find all posts by this user
Quote this message in a reply
02-21-2020, 12:31 AM
Post: #2
RE: perform a request from a script
You need to be on a page of some sort in the browser to initiate the API call. You don't necessarily have to navigate the login screen but you have to navigate to some page (probably on the same origin) then you can use the exec command to run javascript to make the API call.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-01-2020, 11:23 PM
Post: #3
RE: perform a request from a script
Thanks, I'll use that
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)