SHARE
TWEET

Untitled

a guest Aug 17th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #select_btn = self.driver.find_element_by_css_selector("#select2-2v7k-container")
  2.  
  3. #select_btn = self.driver.find_element_by_css_selector(".col-md-12")
  4.  
  5. #select_btn = self.driver.find_element_by_id("select2-2v7k-container")
  6.  
  7. #select_btn = self.driver.find_element_by_id("select2-t2zd-container")
  8.  
  9. select_btn = self.driver.find_element_by_xpath("//span[@id='select2-2v7k-container']")
  10.  
  11. self.driver.execute_script("arguments[0].click();", select_btn)
  12.  
  13. #select_btn.click()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top