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

Tim Harig usernet at ilthio.net
Sun Nov 28 20:59:57 CET 2010


On 2010-11-28, He Jibo <hejibo at gmail.com> wrote:
> I did a lot of Googling, and get the following code. The following
> code can get the url of the first tab in internet explorer. My
> question is, how can I get the url of the current active tab? Thanks.

It would be beneficial to know what your ultimate goal is.  The
"InternetExplorer.Application" automation object doesn't contain any way to
manipulate tabs directly; but, there are likely less direct methods of
achieving whatever you are trying to accomplish if you let us know what
that is.



More information about the Python-list mailing list