How do I get the URL of the active tab in Firefox/IE/Chrome?

Michel Claveau - MVP enleverLesX_XXmcX at
Mon Nov 29 07:26:49 CET 2010


> The "InternetExplorer.Application" automation object doesn't contain 
> any way to manipulate tabs directly

False. Try this example:
  import win32com.client
  for instance in win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'):
      print instance,"  URL :",instance.LocationURL

Michel Claveau 

More information about the Python-list mailing list