Skip to content

Instantly share code, notes, and snippets.

View ArCiGo's full-sized avatar
🎯
Learning

Armando Cifuentes ArCiGo

🎯
Learning
View GitHub Profile
@ndavis
ndavis / oktaLogin.js
Created November 7, 2019 03:38
Cypress Custom Command for Okta Login
Cypress.Commands.add('loginOkta', () => {
const optionsSessionToken = {
method: 'POST',
url: Cypress.env('session_token_url'),
body: {
username: Cypress.env('username'),
password: Cypress.env('password'),
options: {
warnBeforePasswordExpired: 'true'
}
@kurotesuta
kurotesuta / HomePage.java
Created April 23, 2019 01:40
Super basic log4j2 example
public class HomePage extends BasePage {
// Any log will be register under HomePage.class
private static final Logger logger = LogManager.getLogger(HomePage.class);
@FindBy(xpath = "someXpath here")
private WebElement loginButton;
public HomePage(AndroidDriver driver) {
super(driver);
@chrisgfortes
chrisgfortes / chakram-api-test.js
Last active October 3, 2018 14:39
Chakram send multipart/form-data file in post request
var chakram = require('chakram'),
expect = chakram.expect,
fs = require('fs'),
path = require("path");
describe("Chakram", function() {
it("Upload", function () {
var file = path.resolve(__dirname, './limites.txt');
var config = {
'formData': {
using System;
using NUnit.Framework;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium;
using OpenQA.Selenium.Interactions;
using System.IO;
namespace DragDropTutorial
{
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@mcls
mcls / osx_setup.md
Last active October 9, 2023 08:23 — forked from jpantuso/osx_lion_rail_setup.md
Setup mac for ruby dev