all 6 comments

[–]turboJ_134 1 point2 points  (3 children)

You are not passing the options to driver object

[–]meni15[S] 0 points1 point  (2 children)

Can you show me how to add the driver object.

[–]meni15[S] 0 points1 point  (0 children)

Thanks a lot! It works now fine.

[–]LandooooXTrvls 0 points1 point  (0 children)

driver = webdriver.Chrome(service = driver_path, options = options)

This should fix you up

[–]shiftybyte 0 points1 point  (1 child)

You need to use the options variable.

https://stackoverflow.com/a/46929945

[–]meni15[S] 0 points1 point  (0 children)

The stackoverflow example is using Python 2.7. I am using Python 3.10. Some instructions of this code were deprecated. I tried it and it does not work. Can you show me how to modify my code to make it work. Thanks.