Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void OpenMultiPageLink(string _link)
- {
- try
- {
- iTime = System.DateTime.Now;
- string multiPageContainerId = "ctl00_ContentPlaceHolder1_EvidenceEntry1_RadMultiPage1";
- IWebElement multiPageContainer= vergeDriver.FindElement(By.Id(multiPageContainerId));
- //Click link
- multiPageContainer.FindElement(By.LinkText(_link)).Click();
- generateResult(iTime, "OpenMultiPageLink", true, "-- View Data --", "OK");
- }
- catch (WebDriverException w)
- {
- generateResult(iTime, "OpenMultiPageLink", false, "-- WD: View Data --", w.Message);
- }
- catch (Exception e)
- {
- generateResult(iTime, "OpenMultiPageLink", false, "-- GE: View Data --", e.Message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement