Reputation: 1081
run tests on Firefox after that on Chrome. Test which run on FF works correctly. Test with the same code but another driver settings(for Chrome) do not work correctly. I have following info from Saucelab's Chrome:
I create driver by that way:
[SetUp]
public void Init()
{
DesiredCapabilities capabillities = DesiredCapabilities.Chrome();
capabillities.SetCapability(CapabilityType.Platform, "Windows 8.1");
capabillities.SetCapability(CapabilityType.Version, "36");
capabillities.SetCapability("name", "R(...)");
capabillities.SetCapability("username", "My username");
capabillities.SetCapability("accessKey", "my acces key value");
driver = new RemoteWebDriver(
new Uri("http://ondemand.saucelabs.com:80/wd/hub"), capabillities);
baseURL = "http://starting address without www";
}
Test fails after one command. The page loaded and after that error that he can not find element. I have tried many posibilities to find elem(by id, css, xpath).
Any idea what am I doing wrong?
Upvotes: 1
Views: 515
Reputation: 1081
The "www" is necessary before web address to correctly runs test in Chrome on Saucelabs.
driver = new RemoteWebDriver(
new Uri("http://ondemand.saucelabs.com:80/wd/hub"), capabillities);
baseURL = "http://www.(...)";
Upvotes: 1