I have the following very short code where I expect to be able to click on a button which contains the text Click Me
:
from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basics(self):
url = "https://seleniumbase.io/demo_page"
self.open(url)
self.click_partial_link("Click Me")
But it does not work. I get an error NoSuchElementException
.
Documentation is HERE.
So how to click on that button using SeleniumBase
(https://seleniumbase.io/)?