@bishalshrestha/dock-selenium

1.0.0 • Public • Published

DOCK SELENIUM

Python only

This is a startup directory to write the selenium scripts in python along with some customization.

Steps.

  1. Clone this repository.
  2. Edit test_script.py. To make changes, write selenium scripts inside the run function defination.
  3. Always bind any selenium script with d while writing test scripts. For example driver.find_element() should be written as d.driver.find_element()

Features

  1. Setting a custom wait time for the webdriver test.wait(5)
  2. Settting the number of times a test should be performed test.rerun(3, lambda: run())
  3. Getting the title of the page test.getTitle()
  4. Checking whether the button or input type submit is clickable test.checkClick("button") or test.checkClick("input")
  5. Checking the presence of an element in a webpage test.checkElement("CLASS_NAME","container")

Note that, this project is still experimental and hence does not support the full render wait time for any test actions.

Readme

Keywords

Package Sidebar

Install

npm i @bishalshrestha/dock-selenium

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

6.8 kB

Total Files

3

Last publish

Collaborators

  • bishalshrestha