cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Selenium code by navigating via POST request

SOLVED
Highlighted
Occasional Contributor

Calling Selenium code by navigating via POST request

Hi,

 

Not sure whether this is a true SoapUI related question, but asking anyway.

 

At this moment we have a project that is testing a Rest service. One request used in several scenarios returns a url in response. This url is to be used for confirmation by clicking buttons on the website. For this confirmation step we successfully implemented Selenium code to run scenarios completely automatically.

 

However, the SUT will soon no longer return a url with parameters (that is, a GET method), but will return a url with parameters included separately. The user can only visit the page via a Post method.

 

Selenium can only navigate to pages using GET methods. 

Is there any way to direct the Selenium driver to the page anyway?

What are the other options?

 

Regards, Albert

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Calling Selenium code by navigating via POST request

Hi @AlbertSoapUI 

 

Yeah - dont think this has nything to do with ReadyAPI!/SoapUI and I've only very basic recent experience of front end automation (I just help out when I have no API testing to do). 

 

HOWEVER - I found a stackoverflow page that queries the no POSTing in Selenium issue and provides some options to enable a workround for this.

 

Stackoverflow Link

 

Unsure if this helps.....

 

Rich

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

3 REPLIES 3
Community Hero

Re: Calling Selenium code by navigating via POST request

Hi @AlbertSoapUI 

 

Yeah - dont think this has nything to do with ReadyAPI!/SoapUI and I've only very basic recent experience of front end automation (I just help out when I have no API testing to do). 

 

HOWEVER - I found a stackoverflow page that queries the no POSTing in Selenium issue and provides some options to enable a workround for this.

 

Stackoverflow Link

 

Unsure if this helps.....

 

Rich

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

Community Manager

Re: Calling Selenium code by navigating via POST request

Thanks for looking into this richie.

 

Hi @AlbertSoapUI,  was the article helpful?



Sonya Mihaljova
Community and Education Specialist
Enroll at the SmartBear Academy today and learn our products via exclusive video courses.
Occasional Contributor

Re: Calling Selenium code by navigating via POST request

I have stumbled upon the following page:

https://www.pawangaria.com/post/automation/browser-automation-using-chromedriver-and-postman/

 

It is about using Postman to control Chrome driver with Json Wire protocol.

I wonder if it is possible to use SoapUI to do the same.

Is anyone experienced with using Json Wire protocol in SoapUI?

Could this be a valid solution?