public void AddNewAddressWithIncorectData(string key, string value, string expectedUrl) { foreach (var driver in Driver.Current) { AddressPage addressPagecs = new AddressPage(driver); addressPagecs.AddNewAddress(); AddNewAddressPage addNewAddressPage = new AddNewAddressPage(driver); Dictionary <string, string> newData = new Dictionary <string, string>(); newData.Add(key, value); AddressPageModel addressPageModel = new AddressPageModel(); addressPageModel.CreateData(newData); addNewAddressPage.Map.GetElements(); addNewAddressPage.FeedDataToPageForm(addressPageModel); Assert.AreEqual(expectedUrl, driver.Url); } }