public void GoTo() { // string Url = System.Configuration.ConfigurationManager.AppSettings[CommonBase.appShortName]; string instance = ReadXmlData.GetAttributeTestDataValue("//Setting/Data[@Info='Instance']"); string Url = ReadXmlData.GetAttributeValue("//catalog/cd[@shortname='" + instance + "']/url");; Browser.Goto(Url); System.Threading.Thread.Sleep(5000); Browser.MaximizeBrowserPage(); }
public void loginToApplication() { AccountPayablesPages.HomePage.GoTo(); string instance = ReadXmlData.GetAttributeTestDataValue("//Setting/Data[@Info='Instance']"); AccountPayablesPages.HomePage.Login(ReadXmlData.GetAttributeValue("//catalog/cd[@shortname='" + instance + "']/username")); AccountPayablesPages.HomePage.Password(ReadXmlData.GetAttributeValue("//catalog/cd[@shortname='" + instance + "']/password")); AccountPayablesPages.HomePage.LoginButton(); Log.Info("logged in successfully"); }