public void ClickOnTopSharingButton() { if (TopSharingButton.Displayed) { TopSharingButton.Click(); } else { Exception e; } }
public void ClickOnTopSharingButton() { if (TopSharingButton.Displayed) { TopSharingButton.Click(); } else { throw new Exception("Element is not found or not clickable"); } }