This file contains hidden or 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.remote.webelement import WebElement | |
from selenium.common.exceptions import NoSuchElementException | |
import os.path | |
def upload_files(element, *files): | |
driver = element.parent | |
isLocal = not driver._is_remote or '127.0.0.1' in driver.command_executor._url | |
paths = [] |