Advertisement
iramirez

Untitled

Nov 15th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def click_column_to_display(self,val):
  2. """Clicks on the colum checkbox to display in the results
  3. :param val: the column checkbox name
  4. :return: None
  5. """
  6. self.logging(self, self.click_column_to_display)
  7. element = (By.XPATH, "//input[@type='checkbox']/parent::*[contains(.,'"+str(val)+"')]/input")
  8. self.find_element(*element).click()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement