Loading repository data…
Loading repository data…
Elmasekar / repository
A sample repo to help you add an extension for automation test in UnitTest for LambdaTest. Run your python automation test scripts on Lambdatest.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
If your webapp requires an extension for automation test in UnitTest on Lambdatest, you can use the following steps to upload extension and run your test. You can refer to sample test repo here.
Note: You will need the Chrome Extensions's ID for this. I am referring it to as $ID$. You can get the $ID$ from the URL of the Chrome Extension page.
For Unix, ~/.config/google-chrome/Default/Extensions/$ID$
For Windows, C:\Users<Your_User_Name>\AppData\Local\Google\Chrome\User Data\Default\Extensions$ID$
For OSX, ~/Library/Application Support/Google/Chrome/Default/Extensions/$ID$
Copy the link to your extension which will look something like - https://automation-prod-user-files.s3.amazonaws.com/extensions/orgId-XXXX/2.1.0_0.zip
In the test file, you need to update the test capabilities and add the extension capability. For example:
desired_caps = {
'LT:Options': {
"build": "Python Demo", # Change your build name here
"name": "Python Demo Test", # Change your test name here
"platformName": "Windows 11",
"selenium_version": "4.0.0",
"lambda:loadExtension": "https://automation-prod-user-files.s3.amazonaws.com/extensions/orgId-XXXX/2.1.0_0.zip"
},
"browserName": "Chrome",
"browserVersion": "98.0",
}
python lambdatest.py