import os
import random
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import NoSuchElementException
from PIL import Image
from time import sleep
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.CSS_SELECTOR, "//*[matches(@class, '_nghost-awn-ACCOUNT_ONBOARDING-15')]")))
element.send_keys("test input")
xpath_alternatives = [
'//*[contains(@class, "input-container") and contains(@class, "floated-label")]',
'//for[contains(text(), "Enter your business name") and contains(text(), "(optional)")]'
]
for xpath in xpath_alternatives:
print(xpath)