GithubHelp home page GithubHelp logo

Comments (5)

icnocop avatar icnocop commented on August 28, 2024

As a work-around, I have to do StartTrialWindow startTrialWindow = new StartTrialWindow(); but this doesn't limit the search to only windows created by the application under test.

from cuite.

FantasticFiasco avatar FantasticFiasco commented on August 28, 2024

I would love to remove or deprecate ApplicationUnderTest, CUITe_WinWindow and the other related classes. I think PageObjects and ScreenObjects are its successors.

Is there anything page objects and screen objects cannot do that you could do prior with the object repository?

With the code you have, what happens when you inherit from Screen instead of WinWindow?

from cuite.

icnocop avatar icnocop commented on August 28, 2024

I get a compilation error if I inherit from Screen instead of WinWindow:

public class StartTrialWindow : Screen
{
    public StartTrialWindow() : base(By.Name("Start Trial"))
    {
    }

    public WinButton StartButton { get { return Find<WinButton>(By.NameContains("Start")); } }
}

'Screen' does not contain a constructor that takes 1 arguments

I expected to be able to set the title of the window (and any other search properties) in the constructor.
I think this would be important if there are multiple windows displayed by the application under test so the expected window would actually be found.

I get some other compiler errors because there are places where I assert that the window does not exist:

'StartTrialWindow' does not contain a definition for 'Exists' and no extension method 'Exists' accepting a first argument of type 'StartTrialWindow' could be found

It seems Page and PageComponent are only for HTML and Silverlight applications, but I am testing a Win32 application.

from cuite.

FantasticFiasco avatar FantasticFiasco commented on August 28, 2024

I'll start to look into it. Thanks for pointing it out.

from cuite.

icnocop avatar icnocop commented on August 28, 2024

I created a pull request for your review, whenever you have the time. Thank you! 😄

from cuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.