{"id":34063359,"url":"https://github.com/hansalemaos/a_selenium_absolute_screencoords","last_synced_at":"2026-04-07T17:32:04.193Z","repository":{"id":65148922,"uuid":"584158029","full_name":"hansalemaos/a_selenium_absolute_screencoords","owner":"hansalemaos","description":"Calculates the absolute screen coordinates of any Selenium element so that you can click on them with every basic automation tool","archived":false,"fork":false,"pushed_at":"2023-01-01T16:16:39.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T00:50:30.986Z","etag":null,"topics":["click","python","selenium"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/a-selenium-absolute-screencoords/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-01T16:16:36.000Z","updated_at":"2023-04-12T13:37:30.000Z","dependencies_parsed_at":"2023-01-02T15:25:02.852Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/a_selenium_absolute_screencoords","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/a_selenium_absolute_screencoords","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_selenium_absolute_screencoords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_selenium_absolute_screencoords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_selenium_absolute_screencoords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_selenium_absolute_screencoords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/a_selenium_absolute_screencoords/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_selenium_absolute_screencoords/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["click","python","selenium"],"created_at":"2025-12-14T05:20:26.015Z","updated_at":"2026-04-07T17:32:04.180Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calculates the absolute screen coordinates of any Selenium element so that you can click on them with every basic automation tool\n\n```python\n# Tested with:\n# https://github.com/ultrafunkamsterdam/undetected-chromedriver\n# Python 3.9.13\n# Windows 10\n\n$pip install a-selenium-absolute-screencoords\n\nYou need only those 2 functions:\nabscoord = get_absolute_screen_coords_of_element(\n    driver,x,y,)\ncoords_clicker.left_click_xy_natural(*abscoord) # Has more options, check it out: https://github.com/hansalemaos/mousekey\n\n\n# Here is an example:\n\nfrom selenium.webdriver.support import expected_conditions\nfrom selenium.webdriver.support.wait import WebDriverWait\nfrom a_selenium2df import get_df\nfrom selenium.webdriver.common.by import By\nfrom a_selenium_kill import add_kill_selenium\nfrom time import sleep\nfrom auto_download_undetected_chromedriver import download_undetected_chromedriver\nimport undetected_chromedriver as uc\nfrom a_selenium_absolute_screencoords import (\n    get_absolute_screen_coords_of_element,\n    coords_clicker,\n)\n\n\n@add_kill_selenium  # https://github.com/hansalemaos/a_selenium_kill\ndef get_driver():\n    folderchromedriver = \"f:\\\\seleniumdriver2\"\n    path = download_undetected_chromedriver(\n        folder_path_for_exe=folderchromedriver, undetected=True\n    )  # https://github.com/hansalemaos/auto_download_undetected_chromedriver\n    driver = uc.Chrome(driver_executable_path=path)\n    return driver\n\n\nif __name__ == \"__main__\":\n    folderchromedriver = \"f:\\\\seleniumdriver3\"\n    path = download_undetected_chromedriver(\n        folder_path_for_exe=folderchromedriver, undetected=True\n    )\n    driver = get_driver()\n    driver.get(\n        r\"https://github.com/signup?ref_cta=Sign+up\u0026ref_loc=header+logged+out\u0026ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E\u0026source=header-repo\"\n    )\n    sleep(2)\n    df = get_df(\n        driver,\n        By,\n        WebDriverWait,\n        expected_conditions,\n        queryselector=\"a\",\n        with_methods=False,\n    )  # https://github.com/hansalemaos/a_selenium2df\n    abscoord = get_absolute_screen_coords_of_element(\n        driver,\n        df.aa_offsetLeft.iloc[2] + df.aa_offsetWidth.iloc[2] // 2,\n        df.aa_offsetTop.iloc[2],\n    )\n    coords_clicker.left_click_xy_natural(*abscoord)\n\t\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fa_selenium_absolute_screencoords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fa_selenium_absolute_screencoords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fa_selenium_absolute_screencoords/lists"}