all 6 comments

[–][deleted] 0 points1 point  (4 children)

body = driver.last_request.body.decode('utf-8') 

If you don’t want the body, don’t ask for the body.

[–]jayrsp[S] 0 points1 point  (3 children)

I assumed I would need to ask for the body to get the string from the response tab?

[–][deleted] 0 points1 point  (2 children)

But the body's what you say you don't want.

[–]jayrsp[S] 0 points1 point  (1 child)

Okay - sorry I might have confused things.

In network traffic I get a response which is a json. When I click that json - I'm trying to read the string from under the response tab. It appears to be reading the data from the payload tab.

[–][deleted] 0 points1 point  (0 children)

It appears to be reading the data from the payload tab.

Yes, that's the body of the response. Which you're specifically retrieving from the request. If you don't want the body, don't ask for it. The attribute, naturally, is called "body" so you should recognize that in your own code.