Ejemplo n.º 1
0
        internal void VysokaiaTemnitsaScript()
        {
            var application = new MyApplication();
            var commonUrls  = new CommonUrls();
            var difficulty  = new Difficulty();

            if (!FormsStorage.mainProgramForm.GoForTheCasketAndToEndCheckBox.Checked && !FormsStorage.mainProgramForm.GoForTheCasketCheckBox.Checked)
            {
                application.NavigateToUrl(difficulty.ChooseDungeonDifficulty(DungeonName, difficulty.GetDungeonDifficulty()));
                _dungeonButtons.enterInDungeon.WaitElementAndClick();
                _dungeonButtons.startBattle.WaitElementAndClick();
                GoInDungeonForTheItems();
            }
            else if (FormsStorage.mainProgramForm.GoForTheCasketAndToEndCheckBox.Checked == false)
            {
                application.NavigateToUrl(commonUrls.GetQuestUrl(DailyQuestName));
                _questsButtons.findGangButton.WaitElementAndClick();
                _dungeonButtons.enterInDungeon.WaitElementAndClick();
                _dungeonButtons.startBattle.WaitElementAndClick();
                GoInDungeonForTheCasketAndItems();
            }
            else if (FormsStorage.mainProgramForm.GoForTheCasketCheckBox.Checked == false)
            {
                application.NavigateToUrl(commonUrls.GetQuestUrl(DailyQuestName));
                _questsButtons.findGangButton.WaitElementAndClick();
                _dungeonButtons.enterInDungeon.WaitElementAndClick();
                _dungeonButtons.startBattle.WaitElementAndClick();
                GoInDungeonOnlyForTheCasket();
            }
        }