This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myfilename = '_Google.png' | |
mycounter = 1 | |
while mycounter < 10: | |
print('0' + str (mycounter) + myfilename) | |
mycounter = mycounter + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from uiautomator import device as d | |
from adb_android import adb_android | |
import time | |
import os.path | |
# Locales | |
locales = ['en', 'ja', 'de'] | |
pathslash = '/' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
OlderNewer