Hello,
I’ve been trying to create some tests using the test recorder for one of our websites. I’d like to create the test on an instance of the Website running on localhost, because I need to set some IDs for elements and don’t want to redeplloy the project everytime. The problem there is that I need to allow CORS for that to work. Whe manually testing I just run Chrome with --disable-web-security + some other arguments. Now my question is, can I set these arguments for the test recorder and tests, so that they use a Chrome instance with CORS allowed?
Currently I record the test on the deployed website, replace the XPATH with my IDs manually (Becasue thy don’t exists yet on the deployed website), download the test as Java Code and then set the WebDriver chromeOptions to use my CORS allowed instance. As you can probably guess that’s pretty tedious
Best regards,
Max