Skip to main content

Realization of UI automated testing wheels by selenium.

Project description

selenide

Realization of UI automated testing wheels by selenium+allure.

from selenium import webdriver

from src.element import Element
from src.page import Page


class LoginPage(Page):
    search = Element("input", "#kw")
    search_btn = Element("search", "#su")

    def login(self):
        self.driver.get("https://www.baidu.com/")
        self.search.input("50331812").enter()
        self.search_btn.click()


def test_login():
    browser = webdriver.Chrome("chromedriver.exe")
    LoginPage(browser).login()
    assert browser.title == "expect value"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selenide-0.0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

selenide-0.0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page