Add an example test for the ":contains()" selector

This commit is contained in:
Michael Mintz 2020-11-24 22:47:01 -05:00
parent eb396b898b
commit ff61653ff6
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
from seleniumbase import BaseCase
class MyTestClass(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")