{"id":22362971,"url":"https://github.com/lambdatest/unittest-browser-options","last_synced_at":"2026-02-19T00:03:04.789Z","repository":{"id":97545494,"uuid":"500833853","full_name":"LambdaTest/UnitTest-browser-options","owner":"LambdaTest","description":"How to set browser specific options in UnitTest on LambdaTest","archived":false,"fork":false,"pushed_at":"2022-06-08T10:32:50.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-23T11:41:16.927Z","etag":null,"topics":["lambdatest","testing","unittest"],"latest_commit_sha":null,"homepage":"","language":null,"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/LambdaTest.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-07T12:36:41.000Z","updated_at":"2022-06-07T12:38:39.000Z","dependencies_parsed_at":"2023-04-20T21:47:45.390Z","dependency_job_id":null,"html_url":"https://github.com/LambdaTest/UnitTest-browser-options","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LambdaTest/UnitTest-browser-options","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FUnitTest-browser-options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FUnitTest-browser-options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FUnitTest-browser-options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FUnitTest-browser-options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LambdaTest","download_url":"https://codeload.github.com/LambdaTest/UnitTest-browser-options/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FUnitTest-browser-options/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"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":["lambdatest","testing","unittest"],"created_at":"2024-12-04T17:12:45.324Z","updated_at":"2026-02-19T00:03:04.783Z","avatar_url":"https://github.com/LambdaTest.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to set browser specific options in UnitTest on [LambdaTest](https://www.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=UnitTest-browser-options)\n\nIf you want to set browser specific options for an automation test in UnitTest on Lambdatest, you can use the following steps. You can refer to sample test repo [here](https://github.com/LambdaTest/UnitTest-browser-options).\n\n# Steps:\n\nYou can specify the various browser specific options in the test file capabilities. The following is an example on how to set Chrome specific options using chromeOptions:\n\n```python\ndesired_caps = {\n            'LT:Options': {\n                \"build\": \"Python Demo\",  # Change your build name here\n                \"name\": \"Python Demo Test\",  # Change your test name here\n                \"platformName\": \"Windows 11\",\n                \"selenium_version\": \"4.0.0\",\n                \"chromeOptions\" : {\n                \"args\" : [\"incognito\"]  # ChromeOption to start chrome in incognito mode\n                \n            },\n            \"browserName\": \"Chrome\",\n            \"browserVersion\": \"98.0\",\n        }\n\n```\n\n* The different options available for Chrome can be referred to [here](https://seleniumhq.github.io/selenium/docs/api/py/webdriver_chrome/selenium.webdriver.chrome.options.html).\n\n* For more information you can refer to this LambdaTest [blog](https://www.lambdatest.com/blog/desired-capabilities-in-selenium-testing/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Pytest-browser-options).\n\n\n## Run your test\n\n```bash\npython lambdatest.py\n```\n\n# Links:\n\n[LambdaTest Community](http://community.lambdatest.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Funittest-browser-options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdatest%2Funittest-browser-options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Funittest-browser-options/lists"}