Skip to content

Instantly share code, notes, and snippets.

Working from home

Rafael Carvalho rafaelcs

Working from home
Block or report user

Report or block rafaelcs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rafaelcs / settings.json
Created Jan 12, 2019
My user settings file to VS Code
View settings.json
"editor.fontSize": 14,
"terminal.external.osxExec": "",
"terminal.explorerKind": "external",
"terminal.integrated.fontFamily": "Meslo LG M for Powerline",
"terminal.integrated.fontSize": 12,
"python.pythonPath": "env/bin/python3",
"editor.autoIndent": true,
"workbench.editor.enablePreview": false,
"workbench.settings.openDefaultSettings": false,
rafaelcs /
Created Jan 11, 2019
File to integrate UI tests with Appium on Buddybuild
#!/usr/bin/env bash
chruby 2.5.1
echo $'=== Building App for Simulator ==='
xcodebuild -project "[your_app_name].xcodeproj" \
rafaelcs / conf.js
Last active May 11, 2017
Protractor conf.js
View conf.js
'use strict';
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
directConnect: true,
specs: ['tests/UI/specs/*.js'],
//seleniumAddress: 'http://localhost:4445/wd/hub',
rafaelcs / table.html
Created Feb 15, 2017
Apenas a primeira página da tabela
View table.html
<table id="holder-fee" class="list wide ">
<th class="header">Name</th>
<th class="header">Category</th>
<th class="header">Charging Unit</th>
<th class="header">Cost</th>
<th class="header">Aditional Cost</th>
<th class="header">Date Modified</th>
rafaelcs /
Created Nov 30, 2016
Fill form > save infos and assert new values
def update_contacts_form(self):
enter_twitter = "http://" + fake.text(max_nb_chars=13) + "com"
enter_facebook = fake.url()
enter_email = fake.free_email()
enter_phone_cell = fake.phone_number()
enter_home_phone = fake.phone_number()
enter_home_ext_phone = fake.building_number()
enter_work_phone = fake.phone_number()
enter_work_ext_phone = fake.building_number()
View gist:d95b6d425658e08df917c6b79f1e605f
Title: Add product for the cart
Type of the Test: Functional Test
Priority: High
Action: After access the product link, click on “add a cart” button
Expected result: Is shown notification on the cart icon and product is added
View gist:a27be25df8b2068f0c9c5a608f644b0d
from selenium import webdriver
from base import Page
from locators import *
from import WebDriverWait
from import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
from import Select
import os
View gist:46f22c7f112bdcdbac00
info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"9.2","deviceName":"iPhone 4s","app":"/Users/rafaelcarvalho1santos/Desktop/Projetos/appium-pytest/app/","platformName":"iOS"}}
info: Client User-Agent string: Python-urllib/2.7
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
rafaelcs / Example_SeleniumC#
Last active Aug 29, 2015
Help user Selenium_groups - Structure test
View Example_SeleniumC#
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Interactions;
using System.Collections.ObjectModel;
View xml
<soapenv:Envelope xmlns:soapenv="" xmlns:tem="" xmlns:trav="" xmlns:arr="">
You can’t perform that action at this time.