{"id":22393558,"url":"https://github.com/mubelotix/webdriver","last_synced_at":"2025-07-31T10:32:09.708Z","repository":{"id":57635591,"uuid":"202571472","full_name":"Mubelotix/webdriver","owner":"Mubelotix","description":"A lightweight webdriver supporting Firefox and Chrome and running without selenium.","archived":false,"fork":false,"pushed_at":"2020-11-25T16:47:04.000Z","size":25013,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-02T01:13:23.659Z","etag":null,"topics":["chrome","firefox","hacktoberfest","lightweight","rust","webdriver"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mubelotix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-15T16:01:09.000Z","updated_at":"2023-02-22T22:53:47.000Z","dependencies_parsed_at":"2022-09-26T20:21:20.599Z","dependency_job_id":null,"html_url":"https://github.com/Mubelotix/webdriver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mubelotix%2Fwebdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mubelotix%2Fwebdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mubelotix%2Fwebdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mubelotix%2Fwebdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mubelotix","download_url":"https://codeload.github.com/Mubelotix/webdriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228236628,"owners_count":17889562,"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":["chrome","firefox","hacktoberfest","lightweight","rust","webdriver"],"created_at":"2024-12-05T05:06:15.513Z","updated_at":"2024-12-05T05:06:16.233Z","avatar_url":"https://github.com/Mubelotix.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lw-webdriver\n\nThis crate allows you to control a web browser (Firefox or chrome) easily.\nIt does not use selenium, which is much more lightweight.\nIt only uses geckodriver or chromedriver (you have to download the one you want to use depending on your browser and place it in your program's directory).\nThis crate can launch the driver and kill his process after, but if one is already running, it will be used.\nA lot of improvements can be done. Feel free to contribute.\n\n## Example\n\n```rust\nuse lw_webdriver::{session::Session, enums::{Browser, Selector}};\nuse std::{thread, time::Duration};\n\n// start session\nlet mut session = Session::new(Browser::Firefox, false).unwrap();\n\n// load a website\nsession.tabs[0].navigate(\"https://mubelotix.dev/\").unwrap();\n\n// click a link\nlet mut element = session.tabs[0].find(Selector::XPath, \"//a[@href='https://www.kerbalspaceprogram.com/']\").unwrap().unwrap();\nelement.click().unwrap();\n\n```\n\n## Running tests\n\nRun tests one by one:\n\n```rust\ncargo test -- --test-threads=1\n```\n\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubelotix%2Fwebdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmubelotix%2Fwebdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubelotix%2Fwebdriver/lists"}