Relative Content

Tag Archive for javascriptes6-promiseplaywrightplaywright-typescript

How to convert the Playwright Request Object into string as it gives promise only?

I am facing an issue where every time i need to compare response body to some string i need to use response.body().toString() with await which just complicated the code unnecessary is there any other way i can store the promise return by response.body() into a string object and then use that object for direct comparison instead of relying upon the toString() method everytime :