contains selenium python code example Example: selenium python class contains //body[contains(@class, 'is-mobile')]