xolvio / chimp-widgets Goto Github PK
View Code? Open in Web Editor NEWWidget that provides high-level commands for UI testing for use with Xolv.io chimp
Widget that provides high-level commands for UI testing for use with Xolv.io chimp
I am trying to get the widgets working- I have both Chimp and chimp-widgets installed globally... my widget file looks like:
module.exports = function(){
this.Before(function(done){
this.SearchPage = this.widgets.Widget.extend({
selector: '#searchform',
searchFor: function(query){
this.setValue('input[name="q"]', searchTerm);
this.keys(['Enter']);
}
});
this.SearchPage.url = 'www.google.com';
done();
});
};
When I run chimp I get the error:
TypeError: Cannot read property 'Widget' of undefined
at World.<anonymous> (features/support/widgets.js:3:39)
Scenario: At the end of each test we want to make sure that the user logs out. We wait for the logout button to be visible to finish any remaining animations and then click the logout button.
Problem: While the login button is visible, @find('button.sign-out').click()
complains that undefined (@find('button.sign-out')
) has no method click
This is the code that does not work
return @waitForVisible('button.sign-out').then =>
@find('button.sign-out').click()
This is the code that is working
return @find('.sign-out').click()
If so, it would help for SEO and credits at least, to have the words "page object" somewhere in the README. Webdriver users have been looking for that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.