#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0

    IE URL window already open?


    I am using python 2.7 64bit on Windows 7. Please help me find a coded example which enables me to detect if an IE window tab is open with a specified url or not. I have searched without success.

    Howard
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    Pretty simple, but you'll need to have the win32com module installed first. Do you have that?
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by Scorpions4ever
    Pretty simple, but you'll need to have the win32com module installed first. Do you have that?
    Yes, I have the win32com module installed.

    Howard
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    Ok, go ahead and grab the IEC module from here. You can use it directly or filch the code you need to do it yourself from this module.

    Code:
    import IEC
    
    ie = IEC.IEController('http://someurl.com/')
    This will find an IE window set to http://someurl.com or return a new IE window, if no such IE window is already open on that URL.

    There is also a section on the web page on how to tune performance, in case you need it.

    <Disclaimer>I'm the author</Disclaimer>
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by Scorpions4ever
    Ok, go ahead and grab the IEC module from here. You can use it directly or filch the code you need to do it yourself from this module.

    Code:
    import IEC
    
    ie = IEC.IEController('http://someurl.com/')
    This will find an IE window set to http://someurl.com or return a new IE window, if no such IE window is already open on that URL.

    There is also a section on the web page on how to tune performance, in case you need it.

    <Disclaimer>I'm the author</Disclaimer>
    I successfully tested the module. I found my url already open or not and navigated then logged in using the module.

    Thanks,
    Howard

IMN logo majestic logo threadwatch logo seochat tools logo