SeleniumBase on MacOS vs Windows

30 Views Asked by At

I've been developing with VSCode on my Mac and haven't run into any snags when working with seleniumbase. I then started working in VSCode in my Windows desktop and started running into issues. Two things:

  • on my Mac, there aren't any ads on browser, but on Windows there are
  • on Windows the DOM properly doesn't seem to be read properly... assert-element still works, but then click on that selector won't work (it works perfectly on my Mac)

I'm using the same selenium and seleniumbase versions, and the same Chrome versions on both machines.

I haven't added any adblocker or any other options to my driver. The code is exactly the same on both machines and I'm using the undetected-driver from seleniumbase.

Something that I did notice was if I perform a debug on my Windows machine and step through, the code does work. Maybe it's a timing issue on Windows vs my Mac?

Obviously I can continue working on my Mac, but now I'm concerned about portability. I could maybe containerize the program, but would rather not at the moment.

Thoughts on what the issue could be? Or what I should specifically look into? OS? The way things are configured on the machines?

0

There are 0 best solutions below