def open_devtools(self): self.driver.find_element_by_tag_name('body').send_keys(Keys.LEFT_ALT + Keys.COMMAND + 'i')