daily pastebin goal
95%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def setUp(self):
  2.     self.browser=webdriver.Chrome()
  3.     self.browser.get("http://www.awgp.org")
  4.  
  5. def test_image_ratio(self):
  6.  
  7.     self.image=self.browser.find_elements_by_xpath(".//img")
  8.     for im in self.image:
  9.         width, height= im.size
  10.         print width, height
  11.  
  12. def tearDown(self):
  13.     self.browser.quit()
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