private Window LaunchSearchCustomer() { Hyperlink searchCustomerLink = window.Get <Hyperlink>("searchCustomer"); searchCustomerLink.Click(); return(window.ModalWindow("Search Customer", InitializeOption.NoCache)); }
private Window LaunchCreateCustomer() { Hyperlink createCustomerLink = window.Get <Hyperlink>("createCustomer"); createCustomerLink.Click(); return(application.GetWindow("Create Customer Step1", InitializeOption.NoCache)); }
public virtual void LaunchModalWindow() { launchModal.Click(); screenRepository.GetModal <ModalScreen>("ModalForm", window, InitializeOption.NoCache).Close(); linkLaunchesModalWindow.Click(); screenRepository.GetModal <ModalScreen>("ModalForm", window, InitializeOption.NoCache).Close(); checkBoxLaunchedModalWindow.Click(); screenRepository.GetModal <ModalScreen>("ModalForm", window, InitializeOption.NoCache).Close(); }
public virtual CreateCustomerStep1Screen LaunchCreateCustomer() { Hyperlink createCustomerLink = window.Get <Hyperlink>("createCustomer"); createCustomerLink.Click(); Window step1Window = application.GetWindow("Create Customer Step1", InitializeOption.NoCache); return(new CreateCustomerStep1Screen(step1Window, application)); }
public virtual SearchCustomerScreen LaunchSearchCustomer() { Hyperlink searchCustomerLink = window.Get <Hyperlink>("searchCustomer"); searchCustomerLink.Click(); Window searchCustomerWindow = window.ModalWindow("Search Customer", InitializeOption.NoCache); return(new SearchCustomerScreen(searchCustomerWindow, application)); }
public virtual SearchMovieScreen SearchMovies() { Hyperlink searchMoviesLink = window.Get <Hyperlink>("searchMovies"); searchMoviesLink.Click(); Window searchMovieWindow = window.ModalWindow("Search Movies", InitializeOption.NoCache); return(new SearchMovieScreen(searchMovieWindow, application)); }
public void CreateCustomer_WithoutName() { Application application = Application.Launch(@"..\..\..\SampleApplication\bin\debug\SampleApplication.exe"); Window window = application.GetWindow("Dashboard", InitializeOption.NoCache); Hyperlink createCustomerLink = window.Get <Hyperlink>("createCustomer"); createCustomerLink.Click(); Window step1 = application.GetWindow("Create Customer Step1", InitializeOption.NoCache); step1.Get <TextBox>("nameTextBox").BulkText = "Rakesh Kumar"; step1.Get <Button>("nextButton").Click(); Label messageLabel = step1.Get <Label>("messageLabel"); Assert.AreEqual("/Age should be a valid number", messageLabel.Text); application.Kill(); }
public void Create() { Application application = Application.Launch(@"..\..\..\SampleApplication\bin\debug\SampleApplication.exe"); Window window = application.GetWindow("Dashboard", InitializeOption.NoCache); Hyperlink createCustomerLink = window.Get <Hyperlink>("createCustomer"); createCustomerLink.Click(); Window step1 = application.GetWindow("Create Customer Step1", InitializeOption.NoCache); step1.Get <TextBox>("nameTextBox").BulkText = "Rakesh Kumar"; step1.Get <TextBox>("ageTextBox").BulkText = "26"; step1.Get <Button>("nextButton").Click(); Window step2 = application.GetWindow("Create Customer Step2", InitializeOption.NoCache); step2.Get <TextBox>("phoneNumberTextBox").BulkText = "123213213"; step2.Get <Button>("submitButton").Click(); application.Kill(); }
public void Issue_Movie_To_An_Existing_Customer() { Window searchWindow = LaunchSearchCustomer(); searchWindow.Get <TextBox>("nameTextBox").Text = "Suman"; searchWindow.Get <Button>("search").Click(); Hyperlink searchMoviesLink = window.Get <Hyperlink>("searchMovies"); searchMoviesLink.Click(); Window searchMovieWindow = searchWindow.ModalWindow("Search Movies", InitializeOption.NoCache); searchMovieWindow.Get <TextBox>("nameTextbox").Text = "Taare"; searchMovieWindow.Get <Button>("search").Click(); searchMovieWindow.Get <Button>("select").Click(); searchWindow.Get <Button>("ok").Click(); }
public void SelectMenuItem(string name) { Hyperlink menuItemLink = new Hyperlink(string.Format(AdminCommonPage.LeftMenuItemHyperlink.XPath, name)); menuItemLink.Click(); }