Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97762

The Constructor RemoteWebDriver(URL, DesiredCapabilities) is undeifned

$
0
0

Multiple markers at this line - The Constructor RemoteWebDriver(URL, DesiredCapabilities) is undeifned - The Constructor URL(String) is undefined

' package GridLearnings;

import org.openqa.selenium.Platform;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.Test;

import com.gargoylesoftware.htmlunit.javascript.host.URL;

public class GridSample  {

    @Test
    public void TestLogin()
    {
        DesiredCapabilities cap= DesiredCapabilities.chrome();
        cap.setBrowserName("Chrome");
        cap.setPlatform(Platform.ANY);

        RemoteWebDriver d =new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"),cap);



    }

}

'


Viewing all articles
Browse latest Browse all 97762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>