""" NOTE: Using CSS Selectors is better than using XPath!
    XPath Selectors break very easily with website changes. """

from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_xpath(self):
        self.open("https://xkcd.com/1319/")
        self.assert_element('//img')
        self.assert_element('/html/body/div[2]/div[2]/img')
        self.click("//ul/li[6]/a")
        self.assert_text("xkcd.com", "//h2")

Add an example test with XPath selectors