from seleniumbase import BaseCase


class ContainsSelectorTests(BaseCase):
    def test_contains_selector(self):
        self.open("https://xkcd.com/2207/")
        self.assert_text("Math Work", "#ctitle")
        self.click('a:contains("Next")')
        self.assert_text("Drone Fishing", "#ctitle")

from seleniumbase import BaseCase


class ContainsSelectorTests(BaseCase):
    def test_contains_selector(self):
        self.open("https://xkcd.com/2207/")
        self.assert_element('div.box div:contains("Math Work")')
        self.click('a:contains("Next")')
        self.assert_element('div div:contains("Drone Fishing")')

Update an example that uses the ":contains()" selector
Update an example that uses the ":contains()" selector
