当前位置:网站首页>Solve some prompt codes that pychar cannot recognize selenium

Solve some prompt codes that pychar cannot recognize selenium

2022-06-25 05:41:00 JackLi2021

I tried N Methods , Even computers U The tray has been reinstalled , Still can't solve , Finally, I found Hua Dian accidentally .

The precondition is that I have used pip install selenium Installed selenium

This is before the solution ,pycharm There is no hint about webelement Code for , for example :send_keys, click And so on.

After a midnight , Plus a whole morning of tossing and turning . Find out : The problem is when importing pycharm He quoted one that seemed to be his own selenium? tmd This is the hanging thing . Blow up my mind ( Put the mouse pointer on  selenium This string of paths can be seen on this word )

  Then find the folder of this path , Delete him . restart pycharm

  The precondition is that I have used pip install selenium Installed selenium,

So it must be python In the installation folder of . To find it ( You don't have to look for it , shutdown -r pycharm,pycharm It will automatically locate .

And then it's all right . You will find the imported selenium yes python The one in the folder . 

  Final , The prompt code appears .

原网站

版权声明
本文为[JackLi2021]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210501452724.html