Why session duration is 0

20 views
Skip to first unread message

ehsan Shirzadi

unread,
Sep 28, 2016, 4:40:49 AM9/28/16
to Selenium Users
Hi there. I want to visit webs with selenium in python using this code:
browser = webdriver.Firefox()
browser.get(url)
time.sleep(30)
elm = browser.find_element_by_xpath(link)
elm.send_keys(Keys.CONTROL + Keys.RETURN)
time.sleep(10)
browser.quit()
After visits I see the session duration in google analytics is 0. What's wrong and how to solve?

Reply all
Reply to author
Forward
0 new messages