Skip to content

Instantly share code, notes, and snippets.

View bbchriscesar's full-sized avatar
🏠
Working from home

Christianne Cesar bbchriscesar

🏠
Working from home
View GitHub Profile
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import os.path
import time
driver = webdriver.Firefox(executable_path=r'/root/PlayGround/geckodriver')
locales = ['en', 'ja', 'de', 'no']
myfilename = '_Google.png'
mycounter = 1
while mycounter < 10:
print('0' + str (mycounter) + myfilename)
mycounter = mycounter + 1
from selenium import webdriver
import os.path
import time
#If you are using Chrome in the office, use the code below.
# driver = webdriver.Chrome(executable_path="chromedriver")
driver = webdriver.Firefox(executable_path=r'/root/PlayGround/geckodriver')
locales = ['en', 'ja', 'de']
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 29 23:19:42 2018
@author: christiannec
"""
from selenium import webdriver
import time
import os.path
from uiautomator import device as d
from adb_android import adb_android
import time
import os.path
# Locales
locales = ['en', 'ja', 'de']
pathslash = '/'
from selenium import webdriver
import time
from appium.webdriver.common.touch_action import TouchAction
class DesiredCapabilities(object):
IPHONE = {
"automationName": "XCUITest",
"platformName": "iOS",
"version": "12.1",
"platform": "MAC",
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
import time
desired_capabilities = {}
desired_capabilities['language'] = 'ja'
desired_capabilities['automationName'] = 'XCUITest'
desired_capabilities['platformName'] = 'iOS'
desired_capabilities['version'] = '12.1'
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
import time
import os.path
locales = ['ja', 'en', 'de']
for locale in locales:
directory = '/Users/christiannec/Documents/iOS/' + locale
slash = '/'
if not os.path.exists(directory):
from selenium import webdriver
import time
import os.path
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome(executable_path="chromedriver")
driver.maximize_window()
#Locales
locales = ['af', 'am', 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'es', 'es-419', 'et', 'eu', 'fa', 'fi', 'fil', 'fr', 'fr-CA', 'gl', 'gu', 'hi', 'hr', 'hu', 'id', 'is', 'it', 'iw', 'ja', 'kn', 'ko', 'lt', 'lv', 'ml', 'mr', 'ms', 'nl', 'no', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk', 'ur', 'vi', 'zh-CN', 'zh-HK', 'zh-TW', 'zu']
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
import time
import os.path
locale = 'de'
directory = '/Users/christiannec/Documents/iOS/' + locale
if not os.path.exists(directory):
os.makedirs(directory)