public void Tweet(Tweet tweet) { TweetButton.Click(); new CreateTweetMobileAppPage(Driver) .WaitForPageLoad() .CreateTweet(tweet); }
private void TweetTextBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\n' && ModifierKeys == Keys.Control) { TweetButton.PerformClick(); e.Handled = true; } }
void ReleaseDesignerOutlets() { if (Screenshot != null) { Screenshot.Dispose(); Screenshot = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (TweetButton != null) { TweetButton.Dispose(); TweetButton = null; } if (PostButton != null) { PostButton.Dispose(); PostButton = null; } if (ButtonSplitter != null) { ButtonSplitter.Dispose(); ButtonSplitter = null; } if (ScreenshotSpinner != null) { ScreenshotSpinner.Dispose(); ScreenshotSpinner = null; } if (PrevBtn != null) { PrevBtn.Dispose(); PrevBtn = null; } if (NextBtn != null) { NextBtn.Dispose(); NextBtn = null; } }
public void Tweet(Tweet tweet) { TweetInput.Click(); TweetInput.SendKeys(tweet.Message); Driver.Wait(Timeouts.Wait) .Until(driver => TweetButton.Enabled); TweetButton.Click(); Thread.Sleep(2000); Driver.Wait(Timeouts.Wait) .Until(driver => TweetButton.Displayed && !TweetButton.Enabled); }
public RankingScreenPresenter(IRankingScreenUseCase rankingScreenUseCase, RankingScreenView rankingScreenView, IStepCountUseCase stepCountUseCase, TweetButton tweetButton) { rankingScreenView.Show(rankingScreenUseCase.rankingScreen); tweetButton.Init(rankingScreenUseCase.language, stepCountUseCase.GetStepCount()); }