JSON execution in Selenium

I need to know the easiest way to execute JSON in a selenium test. For example, I would like to POST {"UserId": "234234"} and check what is returned. Currently using the Chrome REST app for quick manual testing. I searched a lot for this topic but did not find any good examples.

+3
source share
1 answer

It does not look like it is best permitted by selenium. With Selenium, you will interact with the form to get this value for publication, and process the subsequent AJAX response / page refresh. If you want to receive POST data, you should look at the library that performs these types of posting operations.

HTTP, Apache ( Java).

+3

All Articles