diff --git a/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature b/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature index 023ea081..2a196bde 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature +++ b/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature @@ -63,7 +63,7 @@ Scenario: ManagingAccess # Examples: | UserName | ListingID | Description | ExpectedResult | ListingURL | AdditionalCCsTextBox | GovPhoneNumber | TakedownReason | - | ricander | 0 | ListingID - Boundary | pass | http://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | + | CEUATST | 0 | ListingID - Boundary | pass | http://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | diff --git a/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature.cs b/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature.cs index ba098337..013b0ccd 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature.cs +++ b/Test/UITest/SpecFlowProjectBDD/Features/ManagingAccess.feature.cs @@ -76,7 +76,7 @@ public void ScenarioCleanup() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("ManagingAccess")] [NUnit.Framework.CategoryAttribute("Access")] - [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingID - Boundary", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingID - Boundary", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] public void ManagingAccess(string userName, string listingID, string description, string expectedResult, string listingURL, string additionalCCsTextBox, string govPhoneNumber, string takedownReason, string[] exampleTags) { string[] @__tags = new string[] { diff --git a/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature b/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature index 373ea828..5c4f4ccc 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature +++ b/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature @@ -12,7 +12,7 @@ Scenario: SendNoticeOfTakedownWithoutADSSlisting And I should be presented with a field to select which platform to send the warning to - And I should be presented with a dropdown menu to select reason for delisting + #And I should be presented with a dropdown menu to select reason for delisting And I should see an optional field for Listing ID "ListingID" @@ -36,9 +36,9 @@ Scenario: SendNoticeOfTakedownWithoutADSSlisting #ReasonForDelisting - When I select a reason for delisting - - Then the system should present a list of reasons for requesting delisting: No business licence provided, invalid business licence number, expired business licence, or suspended business license +# When I select a reason for delisting +# +# Then the system should present a list of reasons for requesting delisting: No business licence provided, invalid business licence number, expired business licence, or suspended business license #CC and Send Copy Options: @@ -84,9 +84,9 @@ Scenario: SendNoticeOfTakedownWithoutADSSlisting # Examples: | UserName | ListingID | Description | ExpectedResult | ListingURL | AdditionalCCsTextBox | GovPhoneNumber | TakedownReason | - | ricander | 0 | ListingID - Boundary | pass | http://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | - | ricander | 9223372036854775807 | ListingID - Test for Max value | pass | http://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | - | ricander | 0 | ListingURL - Valid URL | pass | HTTP://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | + | CEUATST | 0 | ListingID - Boundary | pass | http://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | + | CEUATST | 9223372036854775807 | ListingID - Test for Max value | pass | http://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | + | CEUATST | 0 | ListingURL - Valid URL | pass | HTTP://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | | CEUATST | 0 | ListingURL - Valid URL | pass | HTTPS://listingURL.com | richard.anderson@dxc.com | 9991231234 | Get a business license | | CEUATST | 0 | ListingURL - Long URL SSL | pass | http://ReallylongURLstring123123123123123123123123123123.com | richard.anderson@dxc.com | 9991231234 | Get a business license | | CEUATST | 0 | Phone Number - Valid '-' | pass | http://ReallylongURLstring123123123123123123123123123123.com | richard.anderson@dxc.com | 999-123-1234 | Get a business license | diff --git a/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature.cs b/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature.cs index 319050ae..aa8b81a4 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature.cs +++ b/Test/UITest/SpecFlowProjectBDD/Features/SendNoticeOfTakedownWithoutADSSlisting.feature.cs @@ -79,15 +79,15 @@ public void ScenarioCleanup() [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingID - Boundary", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] [NUnit.Framework.TestCaseAttribute("ricander", "9223372036854775807", "ListingID - Test for Max value", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Valid URL", "pass", "HTTP://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingURL - Valid URL", "pass", "HTTPS://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingURL - Long URL SSL", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "Phone Number - Valid \'-\'", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "999-123-1234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "Phone Number - Valid \'(\'", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "(999)1231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "Phone Number - Valid \'- and (\'", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "(999)-123-1234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "-1", "ListingID - Negative number test", "Pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "test", "ListingID - Test for string", "Pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "e", "ListingID - Test for exponential", "Pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingURL - Invalid URL", "fail", "http://listingURL", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Valid URL", "pass", "HTTPS://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Long URL SSL", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "Phone Number - Valid \'-\'", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "999-123-1234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "Phone Number - Valid \'(\'", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "(999)1231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "Phone Number - Valid \'- and (\'", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "(999)-123-1234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "-1", "ListingID - Negative number test", "Pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "test", "ListingID - Test for string", "Pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "e", "ListingID - Test for exponential", "Pass", "http://listingURL.com", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Invalid URL", "fail", "http://listingURL", "richard.anderson@dxc.com", "9991231234", "Get a business license", null)] public void SendNoticeOfTakedownWithoutADSSlisting(string userName, string listingID, string description, string expectedResult, string listingURL, string additionalCCsTextBox, string govPhoneNumber, string takedownReason, string[] exampleTags) { string[] @__tags = new string[] { @@ -132,9 +132,6 @@ public void SendNoticeOfTakedownWithoutADSSlisting(string userName, string listi testRunner.And("I should be presented with a field to select which platform to send the warning t" + "o", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden -#line 15 - testRunner.And("I should be presented with a dropdown menu to select reason for delisting", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); -#line hidden #line 17 testRunner.And("I should see an optional field for Listing ID \"ListingID\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden @@ -162,14 +159,6 @@ public void SendNoticeOfTakedownWithoutADSSlisting(string userName, string listi #line 35 testRunner.Then("the system should validate the email format", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden -#line 39 - testRunner.When("I select a reason for delisting", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line hidden -#line 41 - testRunner.Then("the system should present a list of reasons for requesting delisting: No business" + - " licence provided, invalid business licence number, expired business licence, or" + - " suspended business license", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden #line 45 testRunner.When("submitting a notice", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden diff --git a/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature b/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature index 6ae0df94..6c050f59 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature +++ b/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature @@ -75,9 +75,9 @@ Scenario: SendTakedownRequestWithoutADSSListing Examples: | UserName | ListingID | Description | ExpectedResult | ListingURL | AdditionalCCsTextBox | Comment | - | ricander | 0 | ListingID - Boundary | pass | http://listingURL.com | richard.anderson@dxc.com | | - | ricander | 9223372036854775807 | ListingID - Test for Max value | pass | http://listingURL.com | richard.anderson@dxc.com | | - | ricander | 0 | ListingURL - Valid URL | pass | HTTP://listingURL.com | richard.anderson@dxc.com | | + | CEUATST | 0 | ListingID - Boundary | pass | http://listingURL.com | richard.anderson@dxc.com | | + | CEUATST | 9223372036854775807 | ListingID - Test for Max value | pass | http://listingURL.com | richard.anderson@dxc.com | | + | CEUATST | 0 | ListingURL - Valid URL | pass | HTTP://listingURL.com | richard.anderson@dxc.com | | | CEUATST | 0 | ListingURL - Valid URL SSL | pass | HTTPS://listingURL.com | richard.anderson@dxc.com | | | CEUATST | 0 | ListingURL - Long URL | pass | http://ReallylongURLstring123123123123123123123123123123.com | richard.anderson@dxc.com | | | CEUATST | -1 | ListingID - Negative number test | pass | http://listingURL.com | richard.anderson@dxc.com | Should pass because non-numberic values are ignored and Listing ID is optional | diff --git a/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature.cs b/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature.cs index 5836f2a8..9e20d1f2 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature.cs +++ b/Test/UITest/SpecFlowProjectBDD/Features/SendTakeDownRequestWithoutADSSListing.feature.cs @@ -79,12 +79,12 @@ public void ScenarioCleanup() [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingID - Boundary", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "", null)] [NUnit.Framework.TestCaseAttribute("ricander", "9223372036854775807", "ListingID - Test for Max value", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "", null)] [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Valid URL", "pass", "HTTP://listingURL.com", "richard.anderson@dxc.com", "", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingURL - Valid URL SSL", "pass", "HTTPS://listingURL.com", "richard.anderson@dxc.com", "", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingURL - Long URL", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "-1", "ListingID - Negative number test", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "Should pass because non-numberic values are ignored and Listing ID is optional", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "test", "ListingID - Test for string", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "should pass because non-numberic values are ignored and Listing ID is optional", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "e", "ListingID - Test for exponential", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "should pass because non-numberic values are ignored and Listing ID is optional", null)] - [NUnit.Framework.TestCaseAttribute("CEUATST", "0", "ListingURL - Invalid URL", "fail", "http://listingURL", "richard.anderson@dxc.com", "", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Valid URL SSL", "pass", "HTTPS://listingURL.com", "richard.anderson@dxc.com", "", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Long URL", "pass", "http://ReallylongURLstring123123123123123123123123123123.com", "richard.anderson@dxc.com", "", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "-1", "ListingID - Negative number test", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "Should pass because non-numberic values are ignored and Listing ID is optional", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "test", "ListingID - Test for string", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "should pass because non-numberic values are ignored and Listing ID is optional", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "e", "ListingID - Test for exponential", "pass", "http://listingURL.com", "richard.anderson@dxc.com", "should pass because non-numberic values are ignored and Listing ID is optional", null)] + [NUnit.Framework.TestCaseAttribute("ricander", "0", "ListingURL - Invalid URL", "fail", "http://listingURL", "richard.anderson@dxc.com", "", null)] public void SendTakedownRequestWithoutADSSListing(string userName, string listingID, string description, string expectedResult, string listingURL, string additionalCCsTextBox, string comment, string[] exampleTags) { string[] @__tags = new string[] { diff --git a/Test/UITest/SpecFlowProjectBDD/StepDefinitions/SendNoticeOfTakedownWithoutADSSlisting.cs b/Test/UITest/SpecFlowProjectBDD/StepDefinitions/SendNoticeOfTakedownWithoutADSSlisting.cs index 54f4671c..4360e88a 100644 --- a/Test/UITest/SpecFlowProjectBDD/StepDefinitions/SendNoticeOfTakedownWithoutADSSlisting.cs +++ b/Test/UITest/SpecFlowProjectBDD/StepDefinitions/SendNoticeOfTakedownWithoutADSSlisting.cs @@ -9,6 +9,7 @@ using OpenQA.Selenium; using OpenQA.Selenium.Support.Extensions; using System.Reflection.Metadata; +using OpenQA.Selenium.Support.UI; namespace SpecFlowProjectBDD.StepDefinitions { @@ -78,6 +79,7 @@ public void GivenIAmAauthenticatedLGStaffMemberUser(string UserName, string Expe [When("I navigate to the delisting warning feature")] public void WhenINavigateToTheDelistingWarningFeature() { + //_LandingPage.SendNoticeButton.ExecuteJavaScript(@"document.querySelector(""#navigate-to-compliance-notice-btn"").click()"); _LandingPage.SendNoticeButton.Click(); } @@ -94,15 +96,15 @@ public void IShouldBePresentedWithAFieldToSelectWhichPlatformToSendTheWarningTo( _DelistingWarningPage.PlatformReceipientDropdown.Click(); } - [Then("I should be presented with a dropdown menu to select reason for delisting")] - public void IShouldBePresentedWithADropdownMenuToSelectReasonForDelisting() - { - _DelistingWarningPage.ReasonDropdown.Click(); - _DelistingWarningPage.ReasonDropdown.Click(); - } + //[Then("I should be presented with a dropdown menu to select reason for delisting")] + //public void IShouldBePresentedWithADropdownMenuToSelectReasonForDelisting() + //{ + // _DelistingWarningPage.ReasonDropdown.Click(); + // _DelistingWarningPage.ReasonDropdown.Click(); + //} [Then(@"I should see an optional field for Listing ID ""(.*)""")] - public void IIhouldDeeAnOptionalFieldForListingID(string ListingID) + public void IShouldSeeAnOptionalFieldForListingID(string ListingID) { //add listing ID _DelistingWarningPage.ListingIDNumberTextBox.EnterText(ListingID); @@ -153,19 +155,19 @@ public void ThenTheSystemShouldValidateTheEmailFormat() { } - //ReasonForDelisting - [When("I select a reason for delisting")] - public void WhenISelectAReasonForDelisting() - { - _DelistingWarningPage.ReasonDropdown.Click(); - _DelistingWarningPage.ReasonDropdown.ExecuteJavaScript(@"document.querySelector(""#reasonId_0"").click()"); - } + ////ReasonForDelisting + //[When("I select a reason for delisting")] + //public void WhenISelectAReasonForDelisting() + //{ + // _DelistingWarningPage.ReasonDropdown.Click(); + // _DelistingWarningPage.ReasonDropdown.ExecuteJavaScript(@"document.querySelector(""#reasonId_0"").click()"); + //} - [Then("the system should present a list of reasons for requesting delisting: No business licence provided, invalid business licence number, expired business licence, or suspended business license")] - public void ThenTheSystemShouldPresentAListOfReasonsForRequestingDelisting() - { + //[Then("the system should present a list of reasons for requesting delisting: No business licence provided, invalid business licence number, expired business licence, or suspended business license")] + //public void ThenTheSystemShouldPresentAListOfReasonsForRequestingDelisting() + //{ - } + //} // CC and Send Copy Options: [When("submitting a notice")] @@ -177,7 +179,7 @@ public void WhenSubmittingANotice() [Then(@"there should be checkboxes or fields to enable sending a copy of the request to myself or adding additional CCs ""(.*)""")] public void LocalGovernmentContactInformationCC(string CCEmailAddress) { - _DelistingWarningPage.SendCopyCheckbox.Click(); + //_DelistingWarningPage.SendCopyCheckbox.Click(); _DelistingWarningPage.AdditionalCCsTextBox.EnterText(CCEmailAddress); } @@ -187,7 +189,7 @@ public void LocalGovernmentContactInformationEmailAndPhone() { _DelistingWarningPage.LocalGovEmailTextBox.EnterText("local@gov.bc"); - _DelistingWarningPage.LocalGovPhoneTextBox.EnterText("999-123-1234"); + //_DelistingWarningPage.LocalGovPhoneTextBox.EnterText("999-123-1234"); } diff --git a/Test/UITest/TestFrameWork/Models/LandingPageModel.cs b/Test/UITest/TestFrameWork/Models/LandingPageModel.cs index f9ff2320..58c40935 100644 --- a/Test/UITest/TestFrameWork/Models/LandingPageModel.cs +++ b/Test/UITest/TestFrameWork/Models/LandingPageModel.cs @@ -4,10 +4,11 @@ public class LandingPageModel { public static string ViewPolicyGuidenceButton { get => ""; } - public static string SendNoticeButton { get => "navigate-to-compliance-notice-btn"; } + public static string SendNoticeButton { get => @"/html/body/app-root/app-layout/div[2]/app-dashboard/div/p-card[6]/div/div/div[2]/button"; } - public static string SendTakeDownLetterButton { get => "navigate-to-delisting-request-btn"; } - public static string ManageAccessRequestsButton { get => "navigate-to-compliance-notice-btn"; } + public static string SendTakeDownLetterButton { get => @"/html/body/app-root/app-layout/div[2]/app-dashboard/div/p-card[7]/div/div/div[2]/button"; } + + public static string ManageAccessRequestsButton { get => @"/html/body/app-root/app-layout/div[2]/app-dashboard/div/p-card[4]/div/div/div[2]/button"; } public static string EscalateTakedownToCEUButton { get => ""; } } diff --git a/Test/UITest/TestFrameWork/PageObjects/LandingPage.cs b/Test/UITest/TestFrameWork/PageObjects/LandingPage.cs index 6d703b3c..e14561b1 100644 --- a/Test/UITest/TestFrameWork/PageObjects/LandingPage.cs +++ b/Test/UITest/TestFrameWork/PageObjects/LandingPage.cs @@ -26,10 +26,9 @@ public LandingPage(IDriver Driver) { _Driver = Driver; _ViewPolicyGuidenceButton = new Button(Driver, Enums.FINDBY.ID, LandingPageModel.ViewPolicyGuidenceButton); - _SendNoticeButton = new Button(Driver, Enums.FINDBY.ID, LandingPageModel.SendNoticeButton); - _SendTakedownLetterButton = new Button(Driver, Enums.FINDBY.ID, LandingPageModel.SendTakeDownLetterButton); - _SendTakedownLetterButton = new Button(Driver, Enums.FINDBY.ID, LandingPageModel.SendTakeDownLetterButton); - _ManageAccessRequestsButton = new Button(Driver, Enums.FINDBY.ID, LandingPageModel.ManageAccessRequestsButton); + _SendNoticeButton = new Button(Driver, Enums.FINDBY.XPATH, LandingPageModel.SendNoticeButton); + _SendTakedownLetterButton = new Button(Driver, Enums.FINDBY.XPATH, LandingPageModel.SendTakeDownLetterButton); + _ManageAccessRequestsButton = new Button(Driver, Enums.FINDBY.XPATH, LandingPageModel.ManageAccessRequestsButton); _EscalateTakedownToCEUButton = new Button(Driver, Enums.FINDBY.ID, LandingPageModel.EscalateTakedownToCEUButton); }