0

English is not my native language, but I will try to be detailed

preconditions:

  • browser e2e tests
  • java , selenium / selenide , testng , selenoid

I have a line in my code:

driver = new Augmenter().augment(driver);

if I'm not mistaken, it's needed when working with the CDP ., however, further in the code I don't use the CDP and I don't make any specific calls.

What I'm trying to say is that I have (seemingly) no reason to use this line.

but(!), if I remove this line, then I have a problem that is relevant only when running remotely (I use Selenoid):

in my tests there are steps when you need to click on an element and after that you go to another site (for example, paypal). And when you go to this site in the browser, the error "server error" appears. (and actually no transition happens)

if you return the string: driver = new Augmenter().augment(driver), then the error disappears.

I don't understand how exactly this line solves the problem, but i want to remove this line because it works like tape and doesn't really solve the problem

I tried to remove this line and looked for other CDP calls to remove them.

I also tried to read the browser logs using the CDP. I added this line to the code when I tried to read the logs using the CDP, but I didn’t succeed in "logs reading"

0 Answers0