lambdatest-selenium-driver


Namelambdatest-selenium-driver JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/LambdaTest/lambdatest-python-sdk
SummaryPython Selenium SDK for testing with Smart UI
upload_time2024-01-31 18:28:44
maintainer
docs_urlNone
authorLambdaTest <keys@lambdatest.com>
requires_python>=3.6
licenseMIT
keywords lambdatest python selenium sdk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # lambdatest-selenium-driver
[![SmartUI-Testing](https://smartui.lambdatest.com/static/media/LTBadge.64a05e73.svg)](https://smartui.lambdatest.com)

SmartUI SDK for python selenium
- [Installation](#installation)
- [Methods](#methods)
- [Usage](#usage)

## Installation

Install Smart UI cli

```sh-session
$ npm install -g @lambdatest/smartui-cli 
```

Install Python Selenium Package

```sh-session
$ pip3 install lambdatest-selenium-driver
```

## Methods
``` python
smartui_snapshot(driver,"Snapshotname")
```

- `driver` (**required**) - A Selenium driver instance is required.
- `name` (**required**) - Name of the screenshot

## Usage

Example selenium test using `smartui_snapshot`

``` python
from lambdatest_selenium_driver import smartui_snapshot
from selenium import webdriver

driver = webdriver.Chrome()
try:
    driver.get('https://www.pinterest.com/pin/16958936087791895/')
    smartui_snapshot(driver,"Snapshotname")
except Exception as err:
    print(err)
finally: 
    driver.close()
```


Copy the project token from [SmartUI Dashboard](https://smartui.lambdatest.com/) and set on CLI via comman
<b>For Linux/macOS:</b>

```sh-session
 export PROJECT_TOKEN="****-****-****-************"
```

<b>For Windows:</b>

```sh-session
 set PROJECT_TOKEN="****-****-****-************"
```

Running test
```sh-session
$ npx smartui exec [python test command]
```
This will create new build and upload snapshot to Smart UI Project.

Executing above test

```sh-session
$ npx smartui exec python test.py
✔ Authenticated with SmartUI
  → using project token '******#ihcjks'
✔ SmartUI started
  → listening on port 8080
✔ Fetched git information
  → branch: main, commit: 7e336e6, author: Sushobhit Dua
✔ SmartUI build created
  → build id: ee2cb6c5-9541-494a-9c75-a74629396b80
✔ Execution of 'python3 test.py' completed; exited with code 0
  → INFO:@lambdatest/python-selenium-driver:Snapshot captured name
✔ Finalized build

```

## Contribute

#### Reporting bugs

Our GitHub Issue Tracker will help you log bug reports.

Tips for submitting an issue:
Keep in mind, you don't end up submitting two issues with the same information. Make sure you add a unique input in every issue that you submit. You could also provide a "+1" value in the comments.

Always provide the steps to reproduce before you submit a bug.
Provide the environment details where you received the issue i.e. Browser Name, Browser Version, Operating System, Screen Resolution and more.
Describe the situation that led to your encounter with bug.
Describe the expected output, and the actual output precisely.

#### Pull Requests

We don't want to pull breaks in case you want to customize your LambdaTest experience. Before you proceed with implementing pull requests, keep in mind the following.
Make sure you stick to coding conventions.
Once you include tests, ensure that they all pass.
Make sure to clean up your Git history, prior your submission of a pull-request. You can do so by using the interactive rebase command for committing and squashing, simultaneously with minor changes + fixes into the corresponding commits.

## About LambdaTest

[LambdaTest](https://www.lambdatest.com/) is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your [selenium automation testing](https://www.lambdatest.com/selenium-automation) to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LambdaTest/lambdatest-python-sdk",
    "name": "lambdatest-selenium-driver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "lambdatest python selenium sdk",
    "author": "LambdaTest <keys@lambdatest.com>",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/41/91/35129748e49e38b6228b56057195d57b2ca2eae9586f19cb27ffec763877/lambdatest-selenium-driver-1.0.2.tar.gz",
    "platform": null,
    "description": "# lambdatest-selenium-driver\n[![SmartUI-Testing](https://smartui.lambdatest.com/static/media/LTBadge.64a05e73.svg)](https://smartui.lambdatest.com)\n\nSmartUI SDK for python selenium\n- [Installation](#installation)\n- [Methods](#methods)\n- [Usage](#usage)\n\n## Installation\n\nInstall Smart UI cli\n\n```sh-session\n$ npm install -g @lambdatest/smartui-cli \n```\n\nInstall Python Selenium Package\n\n```sh-session\n$ pip3 install lambdatest-selenium-driver\n```\n\n## Methods\n``` python\nsmartui_snapshot(driver,\"Snapshotname\")\n```\n\n- `driver` (**required**) - A Selenium driver instance is required.\n- `name` (**required**) - Name of the screenshot\n\n## Usage\n\nExample selenium test using `smartui_snapshot`\n\n``` python\nfrom lambdatest_selenium_driver import smartui_snapshot\nfrom selenium import webdriver\n\ndriver = webdriver.Chrome()\ntry:\n    driver.get('https://www.pinterest.com/pin/16958936087791895/')\n    smartui_snapshot(driver,\"Snapshotname\")\nexcept Exception as err:\n    print(err)\nfinally: \n    driver.close()\n```\n\n\nCopy the project token from [SmartUI Dashboard](https://smartui.lambdatest.com/) and set on CLI via comman\n<b>For Linux/macOS:</b>\n\n```sh-session\n export PROJECT_TOKEN=\"****-****-****-************\"\n```\n\n<b>For Windows:</b>\n\n```sh-session\n set PROJECT_TOKEN=\"****-****-****-************\"\n```\n\nRunning test\n```sh-session\n$ npx smartui exec [python test command]\n```\nThis will create new build and upload snapshot to Smart UI Project.\n\nExecuting above test\n\n```sh-session\n$ npx smartui exec python test.py\n\u2714 Authenticated with SmartUI\n  \u2192 using project token '******#ihcjks'\n\u2714 SmartUI started\n  \u2192 listening on port 8080\n\u2714 Fetched git information\n  \u2192 branch: main, commit: 7e336e6, author: Sushobhit Dua\n\u2714 SmartUI build created\n  \u2192 build id: ee2cb6c5-9541-494a-9c75-a74629396b80\n\u2714 Execution of 'python3 test.py' completed; exited with code 0\n  \u2192 INFO:@lambdatest/python-selenium-driver:Snapshot captured name\n\u2714 Finalized build\n\n```\n\n## Contribute\n\n#### Reporting bugs\n\nOur GitHub Issue Tracker will help you log bug reports.\n\nTips for submitting an issue:\nKeep in mind, you don't end up submitting two issues with the same information. Make sure you add a unique input in every issue that you submit. You could also provide a \"+1\" value in the comments.\n\nAlways provide the steps to reproduce before you submit a bug.\nProvide the environment details where you received the issue i.e. Browser Name, Browser Version, Operating System, Screen Resolution and more.\nDescribe the situation that led to your encounter with bug.\nDescribe the expected output, and the actual output precisely.\n\n#### Pull Requests\n\nWe don't want to pull breaks in case you want to customize your LambdaTest experience. Before you proceed with implementing pull requests, keep in mind the following.\nMake sure you stick to coding conventions.\nOnce you include tests, ensure that they all pass.\nMake sure to clean up your Git history, prior your submission of a pull-request. You can do so by using the interactive rebase command for committing and squashing, simultaneously with minor changes + fixes into the corresponding commits.\n\n## About LambdaTest\n\n[LambdaTest](https://www.lambdatest.com/) is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your [selenium automation testing](https://www.lambdatest.com/selenium-automation) to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python Selenium SDK for testing with Smart UI",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/LambdaTest/lambdatest-python-sdk"
    },
    "split_keywords": [
        "lambdatest",
        "python",
        "selenium",
        "sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f04dc07368e80fb4f2c9f37f1ddd4faa0e4c29681f487aa7989c19589fb69fc3",
                "md5": "f3ccfff5de0dfc9e2ab7c6dfb3f7e0b6",
                "sha256": "f086682990ec83aa9c9c4b6781b5f801d1fdd3cf37e4b03f22173f2ea2426553"
            },
            "downloads": -1,
            "filename": "lambdatest_selenium_driver-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f3ccfff5de0dfc9e2ab7c6dfb3f7e0b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4409,
            "upload_time": "2024-01-31T18:28:42",
            "upload_time_iso_8601": "2024-01-31T18:28:42.807367Z",
            "url": "https://files.pythonhosted.org/packages/f0/4d/c07368e80fb4f2c9f37f1ddd4faa0e4c29681f487aa7989c19589fb69fc3/lambdatest_selenium_driver-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "419135129748e49e38b6228b56057195d57b2ca2eae9586f19cb27ffec763877",
                "md5": "52a340e5370b65b1b454bb8d9f7befd4",
                "sha256": "b7c613dc7c7fcd5b26f070ea6061b7691ebd09e82c7bffef5520b4cdb080dc27"
            },
            "downloads": -1,
            "filename": "lambdatest-selenium-driver-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "52a340e5370b65b1b454bb8d9f7befd4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3787,
            "upload_time": "2024-01-31T18:28:44",
            "upload_time_iso_8601": "2024-01-31T18:28:44.500574Z",
            "url": "https://files.pythonhosted.org/packages/41/91/35129748e49e38b6228b56057195d57b2ca2eae9586f19cb27ffec763877/lambdatest-selenium-driver-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 18:28:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LambdaTest",
    "github_project": "lambdatest-python-sdk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lambdatest-selenium-driver"
}
        
Elapsed time: 0.17423s