public void Maps_OpenPropertyAddressInGoogleMap() { try { test = extent.CreateTest("Maps_OpenPropertyAddressInGoogleMap").Info("Test Started"); NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver); AssetSummaryPage asset = new AssetSummaryPage(BaseTest.driver); Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver); navigation.ClickMainMenu(); navigation.ClickPropertyMaintenanceOption(); Thread.Sleep(3000); asset.NavigateToPropertyDetails(); operating.clickMapsTab(); Boolean res = operating.NavigateToViewInGoogleMaps(); Assert.IsTrue(res == true, "Google map links does not open in new tab"); test.Log(Status.Pass, "Test Case passed"); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }