Skip to content

Instantly share code, notes, and snippets.

View dragancla's full-sized avatar

Anton Dragan dragancla

View GitHub Profile
@dragancla
dragancla / gist:ee9b836f78fa47781225c8ad60aeeb68
Created October 5, 2025 13:40
Kia refresh token selenium script
# main.py
import re
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
import requests
session = requests.Session()
@dragancla
dragancla / devices.js
Created April 23, 2020 07:39
Device farm capabilities
const devices = {
'samsung-tab': {
browserName: 'Samsung Tab S3',
'appium:deviceName': 'Samsung Tablet',
'appium:platformVersion': '8.0.0',
'appium:udid': '350442bf963ed526',
'appium:systemPort': 8201
},
'samsung-phone': {
browserName: 'Samsung Galaxy S9',
[HTTP] <-- GET /wd/hub/status 200 1 ms - 75
[HTTP]
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[HTTP] <-- GET /wd/hub/status 200 1 ms - 75
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"appium:systemPort":8204,"config":{"company specific stuff"},"appium:browserName":"chrome","server:CONFIG_UUID":"da49274e-bea3-4a75-a17
[Appium] Trying to fix W3C capabilities by merging them with JSONWP caps
[BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix:
@dragancla
dragancla / cloudSettings
Last active November 13, 2020 09:29
VSCODE SYNC
{"lastUpload":"2020-11-13T09:29:34.194Z","extensionVersion":"v3.4.3"}