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 selenide.element import Element
from selenide.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.7.tar.gz (4.7 kB view hashes)

Uploaded Source

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