<error>lo address.getHostName() = localhost (just setting chrome with selenium)

293 views
Skip to first unread message

priyanka singh

unread,
Mar 23, 2012, 3:57:32 AM3/23/12
to Selenium Users
Hello,

I am a new user of selenium and using selenium RC with eclipse , code
given below

package com.example.tests;
import org.junit.*;
import com.thoughtworks.selenium.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Newclass extends SeleneseTestBase {

public void setUp() throws Exception {
selenium=new DefaultSelenium("10.151.14.203",4444,"*chrome","http://
www.google.com");
selenium.start();
}


public void testNewclass() throws Exception {
selenium.open("/");
selenium.type("gbqfq", "selenium");
selenium.click("link=Selenium - Web Browser Automation");
}


public void tearDown() throws Exception {
selenium.stop();
}
}



which gives the errors

lo
address.getHostName() = localhost
address.getHostAddress() = 127.0.0.1
address.isLoopbackAddress() = true
eth0
address.getHostName() = ITEM-42569
address.getHostAddress() = 192.168.229.1
address.isLoopbackAddress() = false
eth1
address.getHostName() = ITEM-42569
address.getHostAddress() = 192.168.172.1
address.isLoopbackAddress() = false
eth2
address.getHostName() = item-42569.axway.int
address.getHostAddress() = 10.151.14.203
address.isLoopbackAddress() = false
Loopback interface LO:
lo
address.getHostName() = localhost
address.getHostAddress() = 127.0.0.1
address.isLoopbackAddress() = true


please suggest how to resolve this

Krishnan Mahadevan

unread,
Mar 24, 2012, 10:24:33 PM3/24/12
to seleniu...@googlegroups.com
What version of selenium are you working with?
> --
> You received this message because you are subscribed to the Google Groups "Selenium Users" group.
> To post to this group, send email to seleniu...@googlegroups.com.
> To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
>
>

--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

dhruv gupta

unread,
Jul 23, 2014, 10:16:29 AM7/23/14
to seleniu...@googlegroups.com
I am facing a very similar problem. My code is different but I am getting the same output.


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class TestWiki  {

    public static void main() throws InterruptedException{
        WebDriver driver = new FirefoxDriver();
        driver.get("http://www.wikipedia.org");
        WebElement link;
        link = driver.findElement(By.linkText("English"));
        link.click();
        Thread.sleep(5000);
        WebElement searchBox;
        searchBox = driver.findElement(By.id("searchInput"));
        searchBox.sendKeys("Software");
        searchBox.submit();
        Thread.sleep(15000);
        driver.quit();
       
    }
}

en1
   address.getHostName() = dhruvs-macbook-pro-2.local
   address.getHostAddress() = fe80:0:0:0:6233:4bff:fe14:987d%5
   address.isLoopbackAddress() = false
   address.getHostName() = 192.168.255.219
   address.getHostAddress() = 192.168.255.219
   address.isLoopbackAddress() = false
en0
   address.getHostName() = dhruvs-macbook-pro-2.local
   address.getHostAddress() = fe80:0:0:0:12dd:b1ff:fec6:b85e%4
   address.isLoopbackAddress() = false
   address.getHostName() = 10.224.28.123
   address.getHostAddress() = 10.224.28.123
   address.isLoopbackAddress() = false
lo0
   address.getHostName() = fe80:0:0:0:0:0:0:1%1
   address.getHostAddress() = fe80:0:0:0:0:0:0:1%1
   address.isLoopbackAddress() = false
   address.getHostName() = localhost
   address.getHostAddress() = 0:0:0:0:0:0:0:1
   address.isLoopbackAddress() = true

   address.getHostName() = localhost
   address.getHostAddress() = 127.0.0.1
   address.isLoopbackAddress() = true
Loopback interface LO:
lo0
   address.getHostName() = fe80:0:0:0:0:0:0:1%1
   address.getHostAddress() = fe80:0:0:0:0:0:0:1%1
   address.isLoopbackAddress() = false
   address.getHostName() = localhost
   address.getHostAddress() = 0:0:0:0:0:0:0:1
   address.isLoopbackAddress() = true

   address.getHostName() = localhost
   address.getHostAddress() = 127.0.0.1
   address.isLoopbackAddress() = true

Using Mac OS X Mavericks, Firefox 31, selenium 2.42 / selenium standalone server 2.20

Bhavya L

unread,
Jun 20, 2018, 12:22:58 AM6/20/18
to Selenium Users
hello

even am facing similar error when am trying to launch chrome

package chrome;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class ChromeTest {
 
 public static void main(String[] args){
 //public void LaunchChrome_Method1() {
System.setProperty("webdriver.chrome.driver","C:\\Users\\bhavya\\Downloads\\chromedriver_win32");
  
  WebDriver driver = new ChromeDriver();
  driver.get("http://www.google.com");
 }

total QA

unread,
Jun 20, 2018, 1:17:16 AM6/20/18
to Selenium Users
Hi Bhavya,

Most of the issues will be resolved if we use the latest version of Selenium,Browser as well

Selenium 3.12
Chrome Latest Executable file
Firefox Latest Executable file

Regards,
Reply all
Reply to author
Forward
0 new messages