Skip to content

Instantly share code, notes, and snippets.

View sqe's full-sized avatar

Aziz Kurbanov sqe

View GitHub Profile
@sqe
sqe / API response
Last active February 14, 2023 21:04
ea - self homework
{
"_company": "#company",
"_email": "#email",
"_first_name": "#first_name",
"_industry": "#industry",
"_last_name": "#last_name",
"_phone": "#phone",
"_start_trial": "/html/body/main/section[2]/div/div[2]/form/div[6]/div[2]/button",
"_title": "#title"
@sqe
sqe / alpine_docker
Last active February 14, 2023 21:12
Image tests for Stateful Web Service
FROM alpine:latest
MAINTAINER Aziz Kurbanov <azizbek@gmail.com>
# up
RUN apk update
# Install bash
RUN apk add --no-cache --update-cache bash
# Install python
@sqe
sqe / juiceroSignUpBadData.py
Last active April 11, 2016 21:55
Some Automated tests for Juicero front-end using selenium-webdriver and python
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
import selenium.webdriver.support.ui as ui
import unittest
test_data = {
"data":{
"bad_data": '''~!@#$%^&*()_+[]\{}|;':",./<>?'''
},
@sqe
sqe / faking_location.py
Last active December 10, 2018 03:50
Faking geolocation in Chrome with javascript for @RubyTester
# Solution found @ http://stackoverflow.com/a/31803008:
from selenium import webdriver
import requests
driver = webdriver.Chrome()
fake_lat = "37.773972"
fake_long = "-122.431297"
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
def login():
browser = webdriver.Firefox()
browser.get('https://instagram.com/accounts/login')
'''
When page loads the Login Form Container is not loaded immediately, that is why we need to do a smart wait,
@sqe
sqe / pok3r_media_keys
Created July 13, 2015 18:54
Music / Volume controls to CTRL + 7 8 9 0 - =
<?xml version="1.0"?>
<root>
<item>
<name>Media Keys to CTRL numbers</name>
<item>
<name>Media Controls to CTRL 7-9</name>
<appendix>* Play/Pause to CTRL+9</appendix>
<appendix>* Previous to CTRL+7</appendix>
<appendix>* Next to CTRL+8</appendix>
<identifier>remap.musiccontrols_to_CTRL_7_CTRL_9</identifier>
@sqe
sqe / tdg.py
Last active February 14, 2023 21:15
test data generator
import os
# Please change per your desire:
Source_File_Name = str(raw_input("input the text file name: "))
Destination = str(raw_input("input the destination directory: ")) #c:\\Python27\\Test_Data"
Word_Count = int(raw_input("how many words should be read into each file: ")) # 10
How_Many_Files = int(raw_input("how many files you want to generate: ")) #100
Dir_Divider = int(raw_input("how many files per directory: ")) #25
Destination_File_Prefix = str(raw_input("input future file prefix: ")) #"WaP_"