Jmeter Web Driver - how to start WDS on an existing Chrome session

17 views Asked by At

I need to start Jmeter and connect to an existing Google Chrome instance to validate a web request. I've added in Jmeter these elements:

jp@gc - Chrome Driver Config
jp@gc - WebDriver Sampler

but I don't find a code to put in the WebDriver Sampler to do that. Can someone help me on that?

Thanks in advance

1

There are 1 answers

0
Ivan G On

It is not possible


What you can do is to store cookies from the "existing Google Chrome" instance or use Chrome with some existing profile instead of creating a new one.

Also you can "validate a web request" using HTTP Request sampler, there is no need to connect to the browser. The browser session can be simulated using aforementioned approach with cookies, in JMeter you can set cookies using HTTP Cookie Manager