SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    New Member
    Join Date
    Feb 2016
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    I can start IE Browser but I can't quit it - need help

    Hello Selenium experts,

    I'm newbie and I have a question, please.
    I can start my IE Browser but somehow I can't quit it.
    Can you help, please?

    - Windows 7 & InternetExplorer 11 & IE Server Driver 2.5.0.0
    - All required configurations are done (see here https://code.google.com/p/selenium/w...ExplorerDriver)

    - DWORD is also in registry created, e.g.
    Name: iexplorer.exe
    Type: REG_DWORD
    Value: 0 (hexadecimal)


    my code looks like this:

    -------------------------------------------------------

    public class IEBrowserDemo1 {

    public WebDriver driver;

    @test
    public void startIEBrowser() {


    System.setProperty("webdriver.ie.driver","C:\\MYAR CHIVES\\WebDrivers\\IEDriverServer.exe");

    driver = new InternetExplorerDriver();
    driver.manage().window().maximize();
    driver.get("http://www.google.com");
    driver.manage().timeouts().implicitlyWait(30,TimeU nit.SECONDS);
    System.out.println("Browser Title=" + driver.getTitle());
    driver.quit();
    }
    }

    error message in console when execute this in Elcipse/TestNG

    org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 19 milliseconds
    Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:55:52'
    System info: host: 'blueoc-PC', ip: '192.168.192.24', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'
    Driver info: org.openqa.selenium.ie.InternetExplorerDriver
    Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, pageLoadStrategy=normal, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:32416/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]
    Session ID: c8e5d519-e711-45f2-84c2-60cfcdc6ad90
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)



  2. #2
    New Member
    Join Date
    Oct 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    use ie as driver

  3. #3
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,594
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Microsoft took over IEDriverServer since IE11,

    You can find the correct driver server here, https://www.microsoft.com/en-us/down....aspx?id=44069

    Be sure to follow the install directions precisely. It's pretty difficult to setup.
    David Lai
    SDET / Consultant
    LinkedIn profile

 

 

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 10.71%
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 07:25 AM.

Copyright BetaSoft Inc.