SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: DP error

  1. #1
    Advanced Member
    Join Date
    Oct 2010
    Location
    USA
    Posts
    578
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DP error


    From the attached DOC with screen shots, you can see that I have three different errors.

    One has to do with Option explicit existence.

    the last is :
    Browser("micClass:=IE").Exit

    yields and error

    Your advise is greatly appreciated.
    Attached Files Attached Files

  2. #2
    SQA Knight
    Join Date
    Jun 2008
    Posts
    2,557
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: DP error

    IE is not an object class.

    With Option Explicit set you need to declare all variables...so you need a line that says Dim IE

    Then rather than Browser("micClass:=IE").Close it would be IE.Close since you stuffed the identification inside the "IE" object you no longer need to qualify it with a wrapper such as Browser()

  3. #3
    Advanced Member
    Join Date
    Oct 2010
    Location
    USA
    Posts
    578
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    I did

    IE.Close

    Run Error = Object doesn't support this property or method
    :'Close'

  4. #4
    Senior Member
    Join Date
    Sep 2006
    Location
    CA, USA
    Posts
    425
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    This error is due to IE in your case is not a Browser object. To make it work, you need:

    Dim IE

    Set IE = Browser("micclass:=Browser")
    IE.Close

  5. #5
    Advanced Member
    Join Date
    Oct 2010
    Location
    USA
    Posts
    578
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    .
    Ok I agree, and did the correction, however still getting an error.
    Attached is a screen shot.
    Dim IE
    SET IE = Browser("micClass:= Browser")
    .
    Error= General run error
    {SET IE = Browser("micClass:= Browser")}
    Attached Images Attached Images

  6. #6
    Senior Member
    Join Date
    Nov 2007
    Posts
    124
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    I am using this and this is working fine.
    Set aBrowser=Browser("micClass:=Browser","creationtime :=0")
    Life is the Game of Luck

  7. #7
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    Set objIE = Browser("micClass:=Browser")
    objIE.Close

    work'z find for me
    Thanks,
    Ganesh Iyer
    Winds of Change

  8. #8
    Advanced Member
    Join Date
    Oct 2010
    Location
    USA
    Posts
    578
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    Here is what I have:

    Dim IE
    SET IE = Browser("micClass:= Browser")
    SET IE= CreateObject("InternetExplorer.Application")
    IE.Visible = True
    IE.Navigate "http://www.Bing.com"
    While IE.Busy
    Wend
    IE.CLOSE
    Set IE = Nothing
    ExitTest

    Run Error:
    Object doesn't support this property or method:"IE.Close"

    If I try

    Dim IE
    SET objIE = Browser("micClass:= Browser")
    SET IE= CreateObject("InternetExplorer.Application")
    IE.Visible = True
    IE.Navigate "http://www.Bing.com"
    While IE.Busy
    Wend
    objIE.CLOSE
    Set IE = Nothing
    ExitTest

    I get the same run error !

  9. #9
    Super Member FredMan's Avatar
    Join Date
    Oct 2007
    Location
    Lenexa, Kansas
    Posts
    1,218
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    Remove the space between the equals sign and the word Browser and change the IE.Close to IE.Quit.
    Onward thru the fog...

  10. #10
    Super Member FredMan's Avatar
    Join Date
    Oct 2007
    Location
    Lenexa, Kansas
    Posts
    1,218
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP error

    Well did this work for you? It worked fine for me.
    Onward thru the fog...

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.57%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:25 PM.

Copyright BetaSoft Inc.