1
Good afternoon, you guys.
I have a problem, and your help is important. I have a mass of tests written in Testmanager online and my scripts are in visual studio 2015. My VS scripts log in to Testmanager online and via Xpath take the mass data. However, I needed to do it differently. This part of logging into testmanager should not appear, that is, it could be used, I believe, some api that picks up the parameters without logging into Testmanager. Can you help me with that ? Today my code is like this:
drivertfs.FindElement(By.XPath("html/body/div[2]/div/div[1]/div/div[2]/div[6]/div[1]/form/div[1]/div[4]/div/input")).SendKeys("[email protected]");
Thread.Sleep(5000);
drivertfs.FindElement(By.XPath("html/body/div[2]/div/div[1]/div/div[2]/div[6]/div[1]/form/div[1]/div[6]/div/input")).SendKeys("Ao198119");
drivertfs.FindElement(By.XPath("html/body/div[2]/div/div[1]/div/div[2]/div[6]/div[1]/form/div[2]/input")).Click();
Thread.Sleep(10000);
drivertfs.FindElement(By.XPath("html/body/div[1]/div/div[2]/div/div/div[1]/div/div[1]/div[2]/div/ul/li[4]/span/span/div/a")).Click();
Thread.Sleep(6000);
drivertfs.FindElement(By.XPath("html/body/div[1]/div/div[1]/div[2]/div[1]/div[2]/ul/li[5]/a")).Click();
Thread.Sleep(10000);
drivertfs.FindElement(By.LinkText("Parameters")).Click();
Thread.Sleep(10000);
var CloudPadraoAmbAdd = drivertfs.FindElement(By.XPath("html/body/div[1]/div/div[2]/div/div/div/div[3]/div/div[1]/div[3]/div[2]/div/div[1]/div[2]/div/div[2]/div[2]/div[1]/div[2]".Trim()));
String CloudPadAmbAdd = CloudPadraoAmbAdd.Text;
var AmbAdicP = drivertfs.FindElement(By.XPath("html/body/div[1]/div/div[2]/div/div/div/div[3]/div/div[1]/div[3]/div[2]/div/div[1]/div[2]/div/div[2]/div[2]/div[1]/div[6]".Trim()));
String AmbAdicionalP = AmbAdicP.Text;
drivertfs.Close();