Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void CheckUncheckSendNotificationCheckBox(bool shouldBeChecked = true)
- {
- Wait4Element(sendNotitficationCheckbox);
- bool res = sendNotitficationCheckbox.GetAttribute("class").Contains("checked");
- IWebElement checkbox = sendNotitficationCheckbox.FindElement(By.Id("globalTourNotification"));
- Console.Out.WriteLine("res = " + res);
- if (shouldBeChecked)
- {
- if (!res)
- {
- checkbox.Click();
- saveButton.Click();
- }
- }
- else
- {
- if (res)
- {
- checkbox.Click();
- saveButton.Click();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement