Skip to content

Instantly share code, notes, and snippets.

View anilreddy's full-sized avatar
🥉
Focusing

Anil Kumar Reddy Gaddam anilreddy

🥉
Focusing
View GitHub Profile
@anilreddy
anilreddy / grunt.js
Created November 3, 2016 07:27
Grunt.js for protractor tasks
module.exports = function(grunt) {
grunt.initConfig({
//For reading Packages
pkg: grunt.file.readJSON('package.json'),
jshint: {
//For reading and executing the spec files
files: ['Gruntfile.js', 'specs/*.js'],
options: {
// options here to override JSHint defaults
@anilreddy
anilreddy / sample.js
Last active October 21, 2016 09:54
How to use Javascript executor in protractor instead of sendkeys
// Text to be entered
var text = 'My text value';
// Locator
var input = element(by.model('angularProperty'));
// Now you can use like this
setValue(text, input);
// Using this function