SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Apprentice
    Join Date
    Oct 2012
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Getting port number issue while launching IE browser..

    Hi Everyone,

    I am trying to launch my browser in IE but i am getting port error. Please find the screen shot. I am using Selenium-Java-2.34.jar files. Please share your thoughts how to overcome this issue.


    Regards,
    Raghu.
    Attached Images Attached Images
    Raghuram

  2. #2
    Member
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    50
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Could you post the piece of code where you launch your browser? I think you're passing the wrong argument to the driver.get().

  3. #3
    Apprentice
    Join Date
    Oct 2012
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Hi,

    Here is the code:

    try
    {
    System.setProperty("webdriver.ie.driver","C:\\Prog ram Files (x86)\\Internet Explorer\\iexplore.exe");

    DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
    desiredCapabilities.setCapability(InternetExplorer Driver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DO MAINS, true);

    WebDriver wdObj = new InternetExplorerDriver(desiredCapabilities);
    wdObj.get("https://www.google.com/");
    wdObj.manage().window().maximize();

    WebDriver.Timeouts timeouts=wdObj.manage().timeouts();
    timeouts.implicitlyWait(100, TimeUnit.MILLISECONDS);

    }catch(Throwable th){
    th.getMessage();
    }

    please have a look into this.. I am using IE version 8.0 & Selenium-Java-2.34.jar files..
    Raghuram

  4. #4
    Member
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    50
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Bingo. I hadn't worked with IE and Selenium myself before, but I was able to reproduce and fix the problem.

    The issue is that you need a separate binary to emulate testing using IE, the InternetExplorerDriver. You can download this from http://selenium-release.storage.goog...com/index.html for the latest versions of Selenium (from 2.39 upwards). It might still be available somewhere for earlier versions of Selenium, I haven't searched for it as I use 2.41 myself.

    Then, don't point the webdriver.ie.driver property to the actual iexplore.exe in your code, but rather to the downloaded binary (it's called IEDriverServer.exe). In my case:

    System.setProperty("webdriver.ie.driver","Z:\\Docu ments\\Bas\\blog\\libs\\IEDriverServer.exe");

    Then run your test again and you'll see that IE is opened and directed towards the page you want to open (in your case, the Google homepage).

    Hope that helps.

  5. #5
    Apprentice
    Join Date
    Oct 2012
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Many thanks for your help. Now i am opening web page in IE.

    Thank you very much.

    Regards,
    Raghu.
    Raghuram

  6. #6
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,647
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Unrelated.. but to get rid of this line of code,

    desiredCapabilities.setCapability(InternetExplorer Driver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DO MAINS, true);

    You should ask your OPS or network engineer to give you the self signed certs they use for their internal environment. Once you have that installed on your machine, those security warnings go away. That'll make your tests more stable by avoiding using unrecommended settings.
    David Lai
    SDET / Consultant
    LinkedIn profile

  7. #7
    New Member
    Join Date
    May 2014
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    IE driver's will be a seperate derivers !try with that

    Regards,
    Thrinath

  8. #8
    Apprentice
    Join Date
    Oct 2012
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Thanks everyone for your support.. I got resolved it..

    Thanks,
    ..Raghu
    Raghuram

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 9.68%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:29 PM.

Copyright BetaSoft Inc.