Getting following error when running my script on cloud using sauce lab. Test did not see a new command for 90 seconds. Timing out.

 

My script is

package List;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.By;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class Cloud_Test {
public static void main(String args[]) throws MalformedURLException
{
DesiredCapabilities cap=DesiredCapabilities.firefox();
cap.setCapability(CapabilityType.PLATFORM, Platform.WINDOWS);
cap.setCapability(CapabilityType.VERSION, “34”);
cap.setCapability(“Name”, “Automation”);
WebDriver d = new RemoteWebDriver(new URL(“http://snpanigrahi9:27185f88-e1cb-4829-a1d1-c874da4738fa@ondemand.saucelabs.com:80/wd/hub“),cap);
d.get(“http://www.facebook.com“);
d.findElement(By.id(“email”)).sendKeys(“satyatherocker@gmail.com”);
d.findElement(By.id(“pass”)).sendKeys(“sairam”);
d.findElement(By.xpath(“html/body/div[1]/div[1]/div/div/div/div/div/div[2]/form/table/tbody/tr[2]/td[3]/label/input”)).click();
d.quit();
}
}

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.