Selenium Python TimeoutException: Message: ' ' -


im having problem identifying causing timeout exception. here code:

class entertainmentsocialmedia(coretest): def testentertainmenttwitter(self):     d = self.driver.getdriver()     d.get(config.host_url + '/thewire')      interstitial = true      while interstitial == true:         try:             interstitial_link = webdriverwait(d, 10).until(                 ec.presence_of_element_located((by.css_selector, "#interstitial-link"))                 ).click()             interstitial = false         except nosuchelementexception:             interstitial = false       print "locating entertainment vertical social share button"     frame = webdriverwait(d, 30).until(         ec.presence_of_element_located((by.id, "twitter-widget-0"))     ) 

when try this, same result.

class entertainmentsocialmedia(coretest):     def testentertainmenttwitter(self):         d = self.driver.getdriver()         d.get(config.host_url + '/thewire')         try:             frame = webdriverwait(d, 10).until(             ec.presence_of_element_located((by.css_selector, "#interstitial-link"))         ).click()                except nosuchelementexception:             print "no welcome ad"           print "locating entertainment vertical social share button"         frame = webdriverwait(d, 30).until(             ec.presence_of_element_located((by.css_selector, "#l"))         ) 

i must missing something!


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -