Skip to content

Instantly share code, notes, and snippets.

View upgundecha's full-sized avatar
💭
Busy

Unmesh Gundecha upgundecha

💭
Busy
View GitHub Profile
@upgundecha
upgundecha / hooks.js
Created February 19, 2017 15:53
cucumber-js hooks
var startTime;
module.exports = function() {
this.After(function (scenario, callback) {
console.log("Name >> " + scenario.getName());
console.log("Start Time >> " + startTime)
console.log("End Time >> " + new Date().getTime())
if(scenario.isSuccessful()) {
console.log("PASS");
} else if (scenario.isFailed()) {
@upgundecha
upgundecha / HomePage.java
Last active January 20, 2017 07:03
SeleniumBootCamp
package com.example.shipwreck.page;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
/**
* This is Shipwreck Home Page
@upgundecha
upgundecha / spring-boot-cheatsheet.java
Created December 1, 2016 18:36 — forked from jahe/spring-boot-cheatsheet.java
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}
@upgundecha
upgundecha / docker-compose.yml
Created April 9, 2016 09:54
Minimal Docker Selenium Grid Setup with Firefox and Chrome
hub:
image: selenium/hub:2.52.0
expose:
- 4444
ports:
- 4444:4444
node-firefox:
image: selenium/node-firefox:2.52.0
links:
- hub
@upgundecha
upgundecha / mft
Last active April 9, 2016 09:55
Gherkin feature file In Hindi
रूप लेख: आपने मित्र या परिवार सदस्य को पैसे भेजना
परिदृष्य: सही नाम
अगर मैं धन स्थानान्तरण पत्र पर हु
जब मै व्यक्ति का नाम चुनता हु
तथा १०० धनराशि लिखता हूँ
तथा स्थानान्तरण चयन करता हूँ
तब धनराशि का स्थानान्तरण संपूर्ण हो जाता हैं
@upgundecha
upgundecha / ChosenSelect.cs
Created May 20, 2014 17:51
A simple Selenium wrapper for handling Select element rendered by Chosen jQuery Plug-In. Vanilla version works well with Standard Select
public class ChosenSelect
{
IWebElement containerElem;
public ChosenSelect(IWebElement element)
{
containerElem = element;
}
public void SelectByText(String text)
@upgundecha
upgundecha / BmiCalculatorTest.svb.vb
Last active December 19, 2015 03:59
This is a demo TestComplete test written in VBScript to test BMI Calculator native iOS app with Appium
Sub BmiCalculatorTest()
On Error Resume Next
'Create an instance of DesirecCapabilities, CapabilityType and By Class using CLR Bridge &
'dotNet Property
Set objCapabilities = dotNet.OpenQA_Selenium_Remote.DesiredCapabilities.zctor()
Set objCapabilityType = dotNet.OpenQA_Selenium_Remote.CapabilityType
'By class provides ability to describe locator types supported by WebDriver
@upgundecha
upgundecha / BmiCalculatorTest.sj.js
Last active December 19, 2015 03:59
This is a demo TestComplete test written in JavaScript to test BMI Calculator native iOS app with Appium
function BmiCalculatorTest()
{
try
{
//Create an instance of DesirecCapabilities, CapabilityType and By Class using CLR Bridge & dotNET Object
var Capabilities = dotNET.OpenQA_Selenium_Remote.DesiredCapabilities.zctor();
var CapabilityType = dotNET.OpenQA_Selenium_Remote.CapabilityType;
var By = dotNET.OpenQA_Selenium.By;
//Set up the capabilities to run test on iOS application on local Appium server