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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bhavya L
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");
 }
}



On Friday, March 23, 2012 at 1:27:32 PM UTC+5:30, priyanka singh wrote:
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://
<a onmousedown="this.href=&#39;http://www.google.com&#39;;return true;" onclick="this.href=&#39;http://www.google.com&#39;;return true;" href="http://www.google.com" target="_blank" rel="nofollow">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() = <a onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fitem-42569.axway.int\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9yTlQocnASkmtvZHQ6hV9wZpTSA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fitem-42569.axway.int\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9yTlQocnASkmtvZHQ6hV9wZpTSA&#39;;return true;" href="http://item-42569.axway.int" target="_blank" rel="nofollow">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

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/99ee4f03-dbcb-44a6-8cae-3572b16a939e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

total QA
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,
total-qa.com

On Wednesday, June 20, 2018 at 9:52:58 AM UTC+5:30, Bhavya L wrote:
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("<a href="http://www.google.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com&#39;;return true;" onclick="this.href=&#39;http://www.google.com&#39;;return true;">http://www.google.com");
 }
}



On Friday, March 23, 2012 at 1:27:32 PM UTC+5:30, priyanka singh wrote:
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://
<a href="http://www.google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com&#39;;return true;" onclick="this.href=&#39;http://www.google.com&#39;;return true;">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() = <a href="http://item-42569.axway.int" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fitem-42569.axway.int\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9yTlQocnASkmtvZHQ6hV9wZpTSA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fitem-42569.axway.int\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF9yTlQocnASkmtvZHQ6hV9wZpTSA&#39;;return true;">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

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3523bad3-56bb-43b7-9e37-500dc493c0c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.