Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python 3.x and selenium. Service unexpectedly exited
Hallo. I'll get
ERROR - Message: Service /usr/bin/safaridriver unexpectedly exited. Status code was: 1
, if I try to run open_hyperlink_1 function. Also, first and fourth element in cycle load correctly. When I try run function without cycle all links will be opened correctly
def open_hyperlink_1(inp, end = ''):
op_log = logging.getLogger("root.open_hyperlink_1")
op_log.debug('*' + 'some_site_name'+end + '*')
    driver = webdriver.Safari()
    driver.get('some_site_name' + end)
    select =driver.find_element_by_xpath('//div[@class="outcomesBlock firstBlock"]//ul')
    link_text = select.get_attribute("outerHTML")
    op_log.info('link opened')
    op_log.info('loading bets')
    del driver
except Exception as E:

for i in link:
    open_hyperlink_1(inp, i)

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Using selenium for web scrapping DoubleLucker 0 156 Jun-24-2017, 02:12 PM
Last Post: DoubleLucker

Forum Jump:

Users browsing this thread: 1 Guest(s)