github seleniumbase/SeleniumBase v1.15.1
Adding ability for parameterized tests

latest releases: v4.32.10, v4.32.9, v4.32.8...
6 years ago

Adding ability for parameterized tests

Example:

from seleniumbase import BaseCase
from parameterized import parameterized


class GoogleTestClass(BaseCase):

    @parameterized.expand([
        ["pypi", "https://pypi.org"],
        ["wikipedia", "https://www.wikipedia.org"],
        ["seleniumbase", "https://github.com/seleniumbase/SeleniumBase"],
    ])
    def test_parameterized_google_search(self, search_term, expected_url):
        self.open('https://google.com')
        self.update_text('input[title="Search"]', search_term + '\n')
        self.assert_text(expected_url, '#search')

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.