public void ClickJSPopups(string elementtext, string expMessage) { _webPage.FindElementByXPath($"//input[contains(@value,'{elementtext}')]").Click(); SwitchToAlert(expMessage); }