I am running this code on GitHub Actions, but it only works if the method calls are commented out. If they are not commented out, the code gives an error saying it did not find the XPath for ‘userName’. Strange, right?
[Test]
public void SuccessCloudExpertProfile()
{
Thread.Sleep(TimeSpan.FromSeconds(5));
driver.Navigate().GoToUrl("https://auth-dev.cloud2gether.com/auth/login/password");
Thread.Sleep(TimeSpan.FromSeconds(10));
string emailDev = "[email protected]";
driver.FindElement(By.XPath("//*[@id='userName']")).SendKeys(emailDev);
driver.FindElement(By.XPath("//*[@id='password']")).SendKeys("testCloud2Gether");
Thread.Sleep(TimeSpan.FromSeconds(1));
driver.FindElement(By.XPath("//*[@id='buttonForm']")).Click();
Thread.Sleep(TimeSpan.FromSeconds(10));
//AddPublicNameAndAboutField(driver);
//SaveTestPicture(driver);
//UploadCloudExpertImg(driver);
//RemoveCloudExpertImg(driver);
//AddLanguages(driver);
//RemoveLanguages(driver);
//CorrectAdress(driver);
//DownloadW8BenForm(driver);
//UploadW8BenForm(driver);
//CopyW8BenForm(driver);
}`
I tried to run my selenium C# tests in cloud with GithubActions
New contributor
Davi Luquini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.