{"_id":"@bishalshrestha/dock-selenium","name":"@bishalshrestha/dock-selenium","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bishalshrestha/dock-selenium","version":"1.0.0","description":"A mockup directory to start using selenium for testing with some custom test methods.","main":"test_script.py","scripts":{"test":"python test_script.py"},"repository":{"type":"git","url":"git+https://github.com/iambstha/dockSelenium.git"},"keywords":["dockselenium"],"author":{"name":"Bishal Shrestha"},"license":"ISC","bugs":{"url":"https://github.com/iambstha/dockSelenium/issues"},"homepage":"https://github.com/iambstha/dockSelenium#readme","dependencies":{"selenium":"^2.20.0"},"devDependencies":{},"_id":"@bishalshrestha/dock-selenium@1.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-L0mphB5fdbN1nS8Sb+h4daRQteY48mfjZ8uNhrr0uoWgv0sHlLJTGaAsabSDXhrrV/EtwR312zUEIsVBj2LT3g==","shasum":"eed2b5de9d7ba5d6e10844d1a642a9e7a7d982f7","tarball":"https://registry.npmjs.org/@bishalshrestha/dock-selenium/-/dock-selenium-1.0.0.tgz","fileCount":3,"unpackedSize":6798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwvqDheQdr7TpUONtBfRfQpgxell1gHvT7EYZHdc33kAiEA6HJcEvhUBb8Yu585731rVn2W6FO0CBCIHGEG7cfcX5Q="}]},"_npmUser":{"name":"bishalshrestha","email":"iambstha@gmail.com"},"directories":{},"maintainers":[{"name":"bishalshrestha","email":"iambstha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dock-selenium_1.0.0_1689566390696_0.42239330333553204"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-17T03:59:50.622Z","1.0.0":"2023-07-17T03:59:50.833Z","modified":"2023-07-17T03:59:51.105Z"},"maintainers":[{"name":"bishalshrestha","email":"iambstha@gmail.com"}],"description":"A mockup directory to start using selenium for testing with some custom test methods.","homepage":"https://github.com/iambstha/dockSelenium#readme","keywords":["dockselenium"],"repository":{"type":"git","url":"git+https://github.com/iambstha/dockSelenium.git"},"author":{"name":"Bishal Shrestha"},"bugs":{"url":"https://github.com/iambstha/dockSelenium/issues"},"license":"ISC","readme":"# DOCK SELENIUM\r\n\r\n## Python only\r\n\r\nThis is a startup directory to write the selenium scripts in python along with some customization.\r\n\r\n### Steps.\r\n1. Clone [this](https://github.com/iambstha/dockSelenium) repository.\r\n2. Edit `test_script.py`. To make changes, write selenium scripts inside the run function defination.\r\n3. Always bind any selenium script with `d` while writing test scripts. For example `driver.find_element()` should be written as `d.driver.find_element()`\r\n\r\n\r\n## Features\r\n\r\n1. Setting a custom wait time for the webdriver `test.wait(5)`\r\n2. Settting the number of times a test should be performed `test.rerun(3, lambda: run())`\r\n3. Getting the title of the page `test.getTitle()`\r\n4. Checking whether the button or input type submit is clickable `test.checkClick(\"button\")` or `test.checkClick(\"input\")`\r\n5. Checking the presence of an element in a webpage `test.checkElement(\"CLASS_NAME\",\"container\")`\r\n\r\n\r\n<mark> Note that, this project is still experimental and hence does not support the full render wait time for any test actions. </mark>","readmeFilename":"README.md"}