Move mouse cursor to element in browser
Project description
SeleniumMoveCursor
Moving cursor to element in browser run by selenium webdriver. Works for chrome and firefox browser maximized or minimized. Method to use is move_to_element.
Preconditions
- Web element is visible on browser (scroll should be done before calling method move_to_element)
Parameters for method move_to_element
-
driver - WebDriver
-
element - WebElement
-
display_scaling - Display scaling (100, 125, 150 or 175 %) need to be given when calling method move_to_element. Default is 100. This info can be found in display settings.
-
chrome_info_bar_shown - Is shown chrome infobar with text: "Chrome is being controlled by automated test software"
How to use method for moving cursor to web element (move_to_element):
from selenium import webdriver from selenium_move_cursor.MouseActions import move_to_element_chrome
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.maximize_window()
driver.get("https://www.google.com/") element = driver.find_elements_by_css_selector("input[class='gNO89b']")[1]
move_to_element_chrome(driver, element, display_scaling=100, chrome_info_bar_shown=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file selenium-move-cursor-0.0.8.tar.gz.
File metadata
- Download URL: selenium-move-cursor-0.0.8.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a07a5e00ad1f5e69b1677d24c572db9eee73154dedc5a14c01933e24d66dd4
|
|
| MD5 |
6827beb25364a1bb67883d1408f24656
|
|
| BLAKE2b-256 |
ea327e94771226dc0932d65d695ebac6799b55f5691beefa25a3679843cb8790
|
File details
Details for the file selenium_move_cursor-0.0.8-py3-none-any.whl.
File metadata
- Download URL: selenium_move_cursor-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6843f39c1eed761251e6c344b568b45d82d81b4894f746d9daeb81fdd1f32917
|
|
| MD5 |
107fc67b8d7767181f5adb2b385f9cac
|
|
| BLAKE2b-256 |
c0440bd0d264a4b91e0eeed6968285e318e070af1ea396d25cb3f94d5d4d0fab
|