Driver. Find_element_by_class_name (" login_switch_btn_box "). Click ()
Driver. Find_element_by_id (" username "). Send_keys (' XXXX ')
Driver. Find_element_by_id (" password "). Send_keys (' XXXX ')
The button=driver. Find_element_by_class_name (' login_switch_btn_box ')
Action=ActionChains (driver)
Action. Click_and_hold (button). The perform ()
Error message:
/Users/luhaotian/Disk/PycharmProjects RobotWX/bin/python/Users/luhaotian/Disk/PycharmProjects RobotWX/test. The py
Traceback (the most recent call last) :
The File "/Users/luhaotian/Disk/PycharmProjects/RobotWX/test. Py", line 16, the in & lt; module>
Action. Click_and_hold (button). The perform ()
File "/Users/luhaotian/Disk/PycharmProjects RobotWX/lib/python3.8/site - packages/selenium webdriver/common/action_chains py", line 80, perform in
Self. W3c_actions. The perform ()
The File "/Users/luhaotian/Disk/PycharmProjects/RobotWX/lib/python3.8/site - packages/selenium webdriver/common/actions/action_builder. Py", line 76, in the perform
The self. The driver. The execute (Command. W3C_ACTIONS, enc)
The File "/Users/luhaotian/Disk/PycharmProjects/RobotWX/lib/python3.8/site - packages/selenium webdriver/remote webdriver. Py", line 321, in the execute
The self. The error_handler. Check_response (response)
The File "/Users/luhaotian/Disk/PycharmProjects/RobotWX/lib/python3.8/site - packages/selenium webdriver/remote/errorhandler py", line 242, in check_response
Raise exception_class (message, screen, stacktrace)
Selenium.com mon. Exceptions. JavascriptException: Message: javascript error: Failed to execute 'elementsFromPoint' on 'Document' : The provided double value is non - finite.
(Session info: chrome=78.0.3904.87)
An error in the last sentence is the perform (), but didn't find what reason
CodePudding user response:
I also met this problem, and browser version, I have two machines, a normal a quote this fault, and not an error that use move_by_offset sliding block up is very smooth, the other will pause, both are ubuntu18.04, that one is very smooth chrome74, when slide is out of the wrong, is also chrome78CodePudding user response:
Post the desktop solution