breuerfelix / chromedriver-py

chromedriver self updated binaries for all platforms

Home Page:https://pypi.org/project/chromedriver-py/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example code fails

cramik opened this issue · comments

Directly copied and ran example code using Python 3.10.2,

C:\Users\Cramik\Desktop>python test4.py Traceback (most recent call last): File "C:\Users\Cramik\Desktop\test4.py", line 4, in <module> service_object = Service(binary_path) NameError: name 'Service' is not defined

oh, just checked. Looks similar to googleworkspace/python-samples#49 (comment)

different code is given in the replies though that defines service, so no clue

the problem here is not the binary_path but the Service() object / function you try to use. This has nothing to do with the library but with the code that uses the binary path :)

@breuerfelix I have the same issue. The Service() object is used in your example code but not defined, so I'm unsure of the type of object I need to be passing.

uff this is true, now i realised! @lundstrj you update the docs, would you mind fixing the import aswell ? :) otherwhise i am going to have a look at it

Hello, I can take a stab at it =)

Sorry about the delay. Here is a little PR to resolve this issue in the example code in readme.md

#20

thanks about that :)