public void HTML_WinForm_Grid_SelectedData() { Actions actions = new Actions(driver); StronaLogowania stronaLogowania = new StronaLogowania(driver, BAZA_PELNA); StronaGlowna strona = stronaLogowania .ZalogujAdministrator(); strona.NavigateFolders("Handel/Towary i usługi"); actions.KeyDown(Keys.Control).Perform(); strona.NavigateGrid("List:Nazwa:7") .Click(); strona.NavigateGrid("List:Kod:1") .Click(); strona.NavigateGrid("List:Nazwa:3") .Click(); strona.NavigateGrid("List:Nazwa:6") .Click(); actions.KeyUp(Keys.Control) .Perform(); // strona.WaitForPageToBeReady(); int LiczbaWybranych = driver.FindElementsByCssSelector(".check-open").Count; stronaLogowania.ThreadSleep(1000); Assert.AreEqual(4, LiczbaWybranych); actions.KeyDown(Keys.Control) .Perform(); strona.NavigateGrid("List:Kod:7") .Click(); actions.KeyUp(Keys.Control) .Perform(); LiczbaWybranych = driver.FindElementsByCssSelector(".check-open") .Count; Assert.AreEqual(3, LiczbaWybranych); }