This is my first contact with selenium and I'm trying to get URL of the current tab opened in firefox. My OS - Ubuntu 16.04. That's what I have :
from selenium import webdriver
import os
os.system('wmctrl -a firefox')
print webdriver.Firefox.current_url
That's what I've got:
<property object at 0x7fc5041a4a48>