Skip to content

Tag: selenium

Could not get version for google-chrome with the command: powershell “$ErrorActionPreference=’silentlycontinue’ using WebDriver manager and Selenium

I’m trying to create a script using python that separate 2 kind of websites , the one with SPF included and the others with SPF , and classify them using python, so in the beginning it worked perfectly but these daysit gives me a message error that I don’t find a clue about it The output message i…

Why cannot I import selenium?

Why can’t I import selenium? My text is looking like this in Visual Studio code: I have not always had this problem. The problem occurred after I switched to Windows 11 where the c-drive was deleted. Do someone out there know how to fix it? I’m using Windows 11. Answer Try C:> py -m ensurepip &…

I can’t add cookies on python selenium webdriver

I’m trying to enter a page and then add cookies on it, but it returns an error and I don’t know why. I did it exactly like is written on the selenium docs, and here is the code i used: And it returns selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: missing ‘nam…