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

Michel Claveau - MVP enleverLesX_XXmcX at XmclavXeauX.com.invalid
Mon Nov 29 01:26:49 EST 2010


Hello!

> 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

@-salutations
-- 
Michel Claveau 





More information about the Python-list mailing list