public void Test05_Modify_Master_Fields_on_Option_2_Quote_1()
        {
            Test04_Modify_Option_1_Quote_1();

            #region Modify Master Fields on Option 2 Quote 1 (Master details of Option 3 Quote 1 Change In line)
            TestConsole.SendMessage("Modify Master Fields on Option 2 Quote 1 (Master details of Option 3 Quote 1 Change In line)");
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:2-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.SelectionOptionTab();
            TestConsole.TestSubmission.TestOption.TestQuote.SelectionQuote();

            #region quote master data
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInInputBoxCob = "Direct - Casualty - F";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxCob = "CF";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInInputBoxMoa = "FA";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxMoa = "FA";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInputBoxQuotingOffice = "LON";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxQuotingOffice = "LON";
            #endregion
            
            TestConsole.TestSubmission.TestOption.TestQuote.InputBoxQuotingOffice.Clear();
            TestConsole.TestSubmission.TestOption.TestQuote.InputBoxQuotingOffice.SendKeys(TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInputBoxQuotingOffice);
            _a = () => TestConsole.WebDriver.FindElement(By.CssSelector(TestConsole.GetTypeAheadCssSelector(TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxQuotingOffice)), TestConsole.LongWait3).Click();
            _a.Retry();

            TestConsole.TestSubmission.TestOption.TestQuote.InputBoxLimitCurrency.Clear();
            TestConsole.TestSubmission.TestOption.TestQuote.InputBoxLimitCurrency.SendKeys("AUD");
            _a = () => TestConsole.WebDriver.FindElement(By.CssSelector(TestConsole.GetTypeAheadCssSelector("AUD")), TestConsole.LongWait3).Click();
            _a.Retry();

            _masterSz1XOz2XVz1XQz1 = TestConsole.TestSubmission.TestOption.TestQuote.GetMasterData();
            _slaveSz1XOz2XVz1XQz1 = TestConsole.TestSubmission.TestOption.TestQuote.GetMasterData();
            TestConsole.PrintScreen(TestConsole.TestSubmission.Context2String());
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.SelectionOptionTab();
            TestConsole.TestSubmission.TestOption.TestQuote.SelectionQuote();
            _masterSz1XOz3XVz1XQz1 = TestConsole.TestSubmission.TestOption.TestQuote.GetMasterData();
            _slaveSz1XOz3XVz1XQz1 = TestConsole.TestSubmission.TestOption.TestQuote.GetMasterData();
            TestConsole.PrintScreen(TestConsole.TestSubmission.Context2String());
            Assert.IsTrue(_masterSz1XOz2XVz1XQz1 == _masterSz1XOz3XVz1XQz1, "Modify Master Fields on Option 2 Quote 1 (Master details of Option 3 Quote 1 Change In line)");
            Assert.IsTrue(_slaveSz1XOz2XVz1XQz1 == _slaveSz1XOz3XVz1XQz1, "Slave updated");
            

            #endregion

            #region assert
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:1-V:1-Q:1";
            TestConsole.TestSubmission.VerifyFieldStatus(
                                                                   cancelEnabled: true,
                                                                   saveEnabled: true,
                                                                   printQuoteEnabled: false);
            TestConsole.TestSubmission.TestOption.VerifyFieldStatus(
                                                                    addOptionEnabled: true,
                                                                    copyOptionEnabled: true,
                                                                    newVersionEnabled: false,
                                                                    addNewQuote: true);
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:1-V:1-Q:2";
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:2-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.VerifyFieldStatus(
                                                                    addOptionEnabled: true,
                                                                    copyOptionEnabled: true,
                                                                    newVersionEnabled: false,
                                                                    addNewQuote: true
                                                                    );
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:2-V:1-Q:2";
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);

            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.VerifyFieldStatus(
                                                                    addOptionEnabled: true,
                                                                    copyOptionEnabled: true,
                                                                    newVersionEnabled: false,
                                                                    addNewQuote: true
                                                                    );
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: false,
                                                                    masterFieldsEnabled: false,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:2";
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: false,
                                                                    masterFieldsEnabled: false,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);


            #endregion
            //Final context,
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:1";

        }
        public void Test04_Modify_Option_1_Quote_1()
        {
            Test03_Copy_Option2_to_Option3();

            #region Modify Option 1 Quote 1 (No Impact to other Quotes)
            TestConsole.SendMessage("Modify Option 1 Quote 1 (No Impact to other Quotes)");
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:1-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.SelectionOptionTab();
            TestConsole.TestSubmission.TestOption.TestQuote.SelectionQuote();

            #region quote master data
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInInputBoxCob = "Direct - Casualty - F";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxCob = "CF";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInInputBoxMoa = "FA";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxMoa = "FA";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInputBoxQuotingOffice = "LON";
            TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxQuotingOffice = "LON";
            #endregion
            TestConsole.TestSubmission.TestOption.TestQuote.InputBoxQuotingOffice.Clear();
            TestConsole.TestSubmission.TestOption.TestQuote.InputBoxQuotingOffice.SendKeys(TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.KeyInputBoxQuotingOffice);
            _a = () => TestConsole.WebDriver.FindElement(By.CssSelector(TestConsole.GetTypeAheadCssSelector(TestConsole.TestSubmission.TestOption.TestQuote.QuoteMasterData.SelectInputBoxQuotingOffice)), TestConsole.LongWait3).Click();
            _a.Retry();

            var checkData01 = TestConsole.TestSubmission.TestOption.TestQuote.InputBoxQuotingOffice.GetAttribute("value");
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.SelectionOptionTab();
            TestConsole.TestSubmission.TestOption.TestQuote.SelectionQuote();
            var checkData02 = TestConsole.TestSubmission.TestOption.TestQuote.InputBoxQuotingOffice.GetAttribute("value");
            TestConsole.SendMessage(string.Format("Debug: checkData01:{0},checkData02{1}", checkData01, checkData02));
            Assert.IsFalse(checkData01 == checkData02, "Modify Option 1 Quote 1 (No Impact to other Quotes) - Failed");
            TestConsole.SendMessage("Modify Option 1 Quote 1 (No Impact to other Quotes) - Success");
            #endregion

            #region assert
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:1-V:1-Q:1";
            TestConsole.TestSubmission.VerifyFieldStatus(
                                                                   cancelEnabled: true,
                                                                   saveEnabled: true,
                                                                   printQuoteEnabled: false);
            TestConsole.TestSubmission.TestOption.VerifyFieldStatus(
                                                                    addOptionEnabled: true,
                                                                    copyOptionEnabled: true,
                                                                    newVersionEnabled: false,
                                                                    addNewQuote: true);
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:1-V:1-Q:2";
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:2-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.VerifyFieldStatus(
                                                                    addOptionEnabled: true,
                                                                    copyOptionEnabled: true,
                                                                    newVersionEnabled: false,
                                                                    addNewQuote: true
                                                                    );
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:2-V:1-Q:2";
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: true,
                                                                    masterFieldsEnabled: true,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);

            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:1";
            TestConsole.TestSubmission.TestOption.VerifyFieldStatus(
                                                                    addOptionEnabled: true,
                                                                    copyOptionEnabled: true,
                                                                    newVersionEnabled: false,
                                                                    addNewQuote: true
                                                                    );
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: false,
                                                                    masterFieldsEnabled: false,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:2";
            TestConsole.TestSubmission.TestOption.TestQuote.VerifyFieldStatus(
                                                                    cobFieldEnabled: false,
                                                                    masterFieldsEnabled: false,
                                                                    slaveFieldsEnabled: true,
                                                                    slaveUpdated: true);


            #endregion
            //Final context,
            TestConsole.TestSubmission.SubmissionContext = "S:1-O:3-V:1-Q:1";
        }