{"id":15043964,"url":"https://github.com/amazingtest/pic-diff-recognizer","last_synced_at":"2025-06-14T06:04:45.811Z","repository":{"id":37641012,"uuid":"277519660","full_name":"amazingTest/Pic-Diff-Recognizer","owner":"amazingTest","description":"Selenium plugin library based on image difference recognition and page intelligent exploration.","archived":false,"fork":false,"pushed_at":"2022-11-22T05:34:02.000Z","size":53,"stargazers_count":26,"open_issues_count":3,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-14T06:04:44.328Z","etag":null,"topics":["selenium","selenium-library","selenium-plugin","selenium-python","selenium-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amazingTest.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":"2020-07-06T11:08:44.000Z","updated_at":"2025-06-04T03:54:16.000Z","dependencies_parsed_at":"2023-01-21T12:47:02.677Z","dependency_job_id":null,"html_url":"https://github.com/amazingTest/Pic-Diff-Recognizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amazingTest/Pic-Diff-Recognizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingTest%2FPic-Diff-Recognizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingTest%2FPic-Diff-Recognizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingTest%2FPic-Diff-Recognizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingTest%2FPic-Diff-Recognizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazingTest","download_url":"https://codeload.github.com/amazingTest/Pic-Diff-Recognizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingTest%2FPic-Diff-Recognizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768507,"owners_count":22908228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["selenium","selenium-library","selenium-plugin","selenium-python","selenium-webdriver"],"created_at":"2024-09-24T20:49:53.141Z","updated_at":"2025-06-14T06:04:45.792Z","avatar_url":"https://github.com/amazingTest.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pic-Diff-Recognizer\n\n+ [Pic-Diff-Recognizer 中文文档](https://github.com/amazingTest/Pic-Diff-Recognizer/blob/master/README_CN.md)\n\nSelenium plugin library based on image difference recognition and page intelligent exploration.\n\nThe origin of this library is to make UI automatic testing no longer need to deal with page elements, but directly use real visual differences to judge whether the test results meet the expectations.\n\n# installation\n    \n    pip install -r requirements.txt\n    \n    pip install pic-diff-recognizer\n    \n    \n# best practice\n\n    from pic_diff_recognizer.searchHandler import SearchHandler\n    from violent_webdriver import Chrome\n    from selenium.webdriver.chrome.options import Options\n    \n    \n    # add some useful options :)\n    chrome_options = Options()\n    chrome_options.add_argument(\"--headless\")\n    chrome_options.add_argument(\"disable-infobars\")\n    chrome_options.add_experimental_option(\"excludeSwitches\", ['enable-automation'])\n    \n    # init driver , executable_path should be your own path!\n    dr = Chrome.violent_chromedriver(chrome_options=chrome_options,\n                                     executable_path='/usr/local/bin/chromedriver')\n    \n    # init searchHandler\n    search_handler = SearchHandler(browser=dr)\n    \n    # search and saving baseline images in current directory named baseline\n    search_handler.traverse_href(origin_url='https://gitbook.cn/gitchat/author/5cea0bfbb78cc870612d8bba')\n    \n    # -------------------- assuming after some iterations of current project -----------------------------\n    \n    search_handler.url_histories = []\n    \n    # load baseline images\n    search_handler.picture_handler.load_base_line()\n    \n    # search and comparing screen shots and baseline images\n    search_handler.traverse_href(origin_url='https://gitbook.cn/gitchat/author/5cea0bfbb78cc870612d8bba',\n                                 compare_baseline_and_screen_shots=True)\n    \n    # generate_diff_between_base_line_and_screen_shot and output diffResults to current directory\n    search_handler.picture_handler.generate_diff_between_base_line_and_screen_shot()\n    \n    # output testReport.txt to current directory\n    search_handler.picture_handler.export_picture_comparison_result()\n    \n    \n# contact me\n\nemail address：523314409@qq.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingtest%2Fpic-diff-recognizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famazingtest%2Fpic-diff-recognizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingtest%2Fpic-diff-recognizer/lists"}