Mouse cursor not moving in selenium python even after using pyautogui

丶灬走出姿态 提交于 2019-12-11 15:11:56

问题


Cursor not moving in macbook: Mojave for Chrome browser version: 74.0.3729.169

First tried to use the built in functions

ActionChains(self.driver).move_by_offset(300, 400).perform()

ChromeDriver version: 74.0.3729.6

Followed the below link to handle cursor movement in mac, chrome. https://automatetheboringstuff.com/chapter18/

Installed all the required software:

 pip3 install pyobjc-framework-Quartz, 
 pip3 install pyobjc-core, and then 
 pip3 install pyobjc
 pip3 install pyautogui

Tried to debug if pyautogui is installed successfully from shell by import python. It is not throwing any error. But following move commands are not having any impact

pyautogui.moveTo(100, 100, duration=0.25)

pyautogui.moveRel(100, 0, duration=0.25)

Trying to move the cursor on an element but no luck. Am i missing something or is there any bug with the versions?

来源:https://stackoverflow.com/questions/56328205/mouse-cursor-not-moving-in-selenium-python-even-after-using-pyautogui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!