Ejemplo n.º 1
0
        public void Success_Translator_CancelSaving_Sentence()
        {
            LoginPage loginPage = new LoginPage(driver);

            loginPage.PerformLogin("*****@*****.**", "Mert123?.com");
            Web_Front_End_Page web_Front_End_Page = new Web_Front_End_Page(driver);

            web_Front_End_Page.GoTranslation();

            web_Front_End_Page.Search("Welcome", "approved");
            var before_change = web_Front_End_Page.Before_changed("Welcome");

            web_Front_End_Page.Search("Welcome", "approved");
            web_Front_End_Page.Change_Translation("dismert", "Cancel");

            web_Front_End_Page.Search("Welcome", "approved");
            var after_change = web_Front_End_Page.Before_changed("Welcome");

            if (before_change == after_change)
            {
                Console.WriteLine("word is not changed");
            }
            else
            {
                Console.WriteLine("word is changed");
            }
        }
Ejemplo n.º 2
0
        public void Success_Translator_Save_Sentence()
        {
            LoginPage loginPage = new LoginPage(driver);

            loginPage.PerformLogin("*****@*****.**", "Mert123?.com");
            Web_Front_End_Page web_Front_End_Page = new Web_Front_End_Page(driver);

            web_Front_End_Page.GoTranslation();

            web_Front_End_Page.Search("Welcome", "approved");
            web_Front_End_Page.Change_Translation("dismert", "Save");

            web_Front_End_Page.Status_edited_control("Welcome");
        }
Ejemplo n.º 3
0
        public void Success_Moderator_ApproveEdited_Sentence()
        {
            LoginPage loginPage = new LoginPage(driver);

            loginPage.PerformLogin("*****@*****.**", "Mert123?.com");
            Web_Front_End_Page web_Front_End_Page = new Web_Front_End_Page(driver);

            web_Front_End_Page.GoTranslation();

            web_Front_End_Page.Search("Welcome", "approved");
            var before_change = web_Front_End_Page.Before_changed("Welcome");

            web_Front_End_Page.Search("Welcome", "approved");
            web_Front_End_Page.Change_Translation("Hoþgeldinizz", "Save");
            web_Front_End_Page.Search("Welcome", "edited");
            web_Front_End_Page.Approve_or_Disaprove("Yes", "Approve");
            Thread.Sleep(1000);
            web_Front_End_Page.Status_approved_control("Welcome", "Hoþgeldinizz", before_change);
        }
Ejemplo n.º 4
0
 public void the_user_navigate_to_search_page()
 {
     web_Front_End_Page = new Web_Front_End_Page(driver);
     web_Front_End_Page.GoTranslation();
 }