Comments (5)
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.
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.
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.
I'll start to look into it. Thanks for pointing it out.
from cuite.
I created a pull request for your review, whenever you have the time. Thank you!
from cuite.
Related Issues (20)
- Does Test Agent update 5 and Test Controller update 5 works on VS 2013 HOT 1
- Add support to find a WinControl by index
- How to extend CUITe controls? HOT 1
- How to get one page object from another? HOT 3
- Application response issues through cuite framework. HOT 1
- By.SearchProperty loses property name when dash is included HOT 3
- Provide Examples of how to use CSS selectors HOT 3
- When will there be a general availability release? HOT 4
- Cannot address elements in TabControl HOT 3
- Can not find control HOT 10
- Error: The non-generic method 'ApplicationUnderTest.Find()' cannot be used with type arguments HOT 2
- HtmlRow not supported? HOT 1
- Browser not launched upon Running/Debugging tests from VSTS Enterprise 2017 HOT 20
- issue in CUITe 2017 HOT 1
- How to work with multiple tab in IE 11 using Cuite HOT 2
- Chrome is not working for Visual Studio 2013 using cuite HOT 1
- How to add multiple search properties for a control, using CUITe framework ? HOT 2
- Issues with horizontal scrolling in WPF application HOT 1
- FindMatchingControls() and GetContent() for WpfControls HOT 1
- Can we use playback class to generate text file containing CodedUI test logs instead of HTML file. If not what are the other methods to do that? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuite.