GithubHelp home page GithubHelp logo

Comments (8)

FantasticFiasco avatar FantasticFiasco commented on August 28, 2024

I am currently on vacation but can take a look at this in three days. Is that OK?

from cuite.

Kritner avatar Kritner commented on August 28, 2024

No problem - just trying to get a better feel for the new syntax.

from cuite.

FantasticFiasco avatar FantasticFiasco commented on August 28, 2024

I am party responsible for the new syntax :-)

The wiki is not up to date with the current syntax, but I think reading the unit tests are a good way to get to know it.

from cuite.

icnocop avatar icnocop commented on August 28, 2024

BrowserWindowUnderTest.GetBrowserWindow<T>(); expects a constructor on type T which takes a string parameter for the title of the window.

You can either add a string parameter to the constructor or try to combine the Launch and GetBrowserWindow functions into one call as follows:

        LogInPage pgLogin = BrowserWindowUnderTest.Launch<LogInPage>(URL);

Thank you.

from cuite.

Kritner avatar Kritner commented on August 28, 2024

@icnocop Thanks, I guess I could do that, but wouldn't I then run into the same issue for my second NewPage newPage = BrowserWindowUnderTest.GetBrowserWindow<NewPage>(); ? I was under the impression that BrowserWindowUnderTest.Launch would open a new URL, and my above was actually just an example, I'm actually doing a test with around 10 separate page flows, would I need to do a Launch for each of them, and know the URL to each of them in turn?

from cuite.

FantasticFiasco avatar FantasticFiasco commented on August 28, 2024

@Kritner I would propose taking a look at the CUITe.ObjectRepository namespace. It contains a few nifty classes that enables you to make use of the Object Repository pattern when it comes to how you write your UI tests. There is a migration story there, one that you will have to put effort into doing, but I think it will pay off in the end. More information can be read in the closed pull request #44.

Once you've migrated to using the classes in namespace CUITe.ObjectRepository, you can then decide if you wan't to take it to a different level by implementing the feature called Workflows in CUITe, a feature that lets you combined a number of actions, like for instance the interaction between your 10 separate pages, into a workflow that can be reused between tests. For more information about workflows please read the information of the closed pull request #46.

from cuite.

FantasticFiasco avatar FantasticFiasco commented on August 28, 2024

@Kritner Is it OK if we close this issue?

from cuite.

Kritner avatar Kritner commented on August 28, 2024

Yeah - thanks

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.