{"id":13337295,"url":"https://github.com/Elmasekar/Behave-browser-options","last_synced_at":"2025-03-11T04:32:38.622Z","repository":{"id":38449912,"uuid":"506600847","full_name":"Elmasekar/Behave-browser-options","owner":"Elmasekar","description":" A sample repo to help you set browser-specific options in Behave on LambdaTest. Run your automation test scripts in Behave on Lambdatest.","archived":false,"fork":false,"pushed_at":"2022-06-23T10:49:05.000Z","size":0,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-06T20:56:10.657Z","etag":null,"topics":["automation","automation-test","behave-browser-option","behave-browser-options","options-in-behave","pyrhon","python-3","python3","set-browser-specific-option","set-browser-specific-options","test-automation"],"latest_commit_sha":null,"homepage":"https://www.lambdatest.com/behave-testing/?utm_source=github\u0026utm_medium=about\u0026utm_campaign=behave_browser_options","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/Elmasekar.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":"2022-06-23T10:49:02.000Z","updated_at":"2022-07-11T08:17:57.000Z","dependencies_parsed_at":"2022-08-30T02:30:24.027Z","dependency_job_id":null,"html_url":"https://github.com/Elmasekar/Behave-browser-options","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elmasekar%2FBehave-browser-options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elmasekar%2FBehave-browser-options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elmasekar%2FBehave-browser-options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elmasekar%2FBehave-browser-options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elmasekar","download_url":"https://codeload.github.com/Elmasekar/Behave-browser-options/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213069662,"owners_count":15532828,"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":["automation","automation-test","behave-browser-option","behave-browser-options","options-in-behave","pyrhon","python-3","python3","set-browser-specific-option","set-browser-specific-options","test-automation"],"created_at":"2024-07-29T19:13:43.382Z","updated_at":"2024-10-23T15:32:32.165Z","avatar_url":"https://github.com/Elmasekar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to set browser specific options in Behave on [LambdaTest](https://www.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=Behave-browser-options)\n\nIf you want to set browser specific options for an automation test in Behave on Lambdatest, you can use the following steps. You can refer to sample test repo [here](https://github.com/LambdaTest/Python-Behave-Selenium).\n\n# Steps:\n\nYou can specify the various browser specific options in the `conftest.py` file. The following is an example on how to set Chrome specific options using chromeOptions:\n\n ```python\ncapabilities = {\n        \"build\": \"Sample PY Build\",\n        \"platformName\": \"Windows 11\",\n        \"browserName\": \"Chrome\",\n        \"browserVersion\": \"latest\",\n        \"chromeOptions\" : {\n                \"args\" : [\"incognito\"]  # ChromeOption to start chrome in incognito mode\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=Behave-browser-options).\n\n## Run your test\n\n### Running tests through local (linux/unix)\n```bash\npaver run \n```\n###Running tests through local (windows)\n```bash\nbehave features/test.feature \n```\n\n### Running tests through jenkins\n```bash\npaver run jenkins\n```\n\n# Links:\n\n[LambdaTest Community](http://community.lambdatest.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElmasekar%2FBehave-browser-options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElmasekar%2FBehave-browser-options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElmasekar%2FBehave-browser-options/lists"}