Home > other >  Turn to python "webdriver object has no attribute.. The solution
Turn to python "webdriver object has no attribute.. The solution

Time:11-18


Why would an error? Please the great god

CodePudding user response:

Import the selenium

CodePudding user response:

Writing is not very clear, please do not support this method dir! Look at the interface of the support method

CodePudding user response:

Join executable_path parameter drive file's path (path to write your own)

Driver=webdriver. Firefox (executable_path="D: \ Mozilla Firefox \ geckodriver")

CodePudding user response:

It should be "element"

CodePudding user response:

Is indeed a find_element_XX, you can set the code completion features, will be very comfortable,

CodePudding user response:

The code should be written in the wrong, should be find_element_by_id (), don't know you did this sublime does code completion function, you'd better go to download a plug-in, not on the Internet is a tutorial,

CodePudding user response:

Element spelt wrong, it is recommended that you use the tools, pycharm strikes the generated code can be assisted, lest you dozen elememt
  • Related