import time
from fake_useragent import UserAgent
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
option = webdriver.ChromeOptions()
ua = UserAgent()
option.add_argument(f'user-agent={ua.random}')
option.add_argument("--disable-infobars")
s = Service(executable_path=r"C:\Python Scripts\валид\Steam Number\chromedriver.exe")
driver = webdriver.Chrome(options=option, service=s)
driver.maximize_window()
driver.get('https://help.steampowered.com/en/wizard/HelpWithLoginInfo?issueid=406')
# iframe
iframe = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.XPATH, '/html/body/div[1]/div[7]/div[2]/div[2]/div/div[2]/div[1]/div[3]/form/div[3]/div[1]/div/div/div/iframe'))
)
# switch to iframe context
driver.switch_to.frame(iframe)
element_to_click = WebDriverWait(driver, 10).until(
EC.element_to_be_clickable((By.XPATH, '/html/body/div[2]/div[3]'))
)
element_to_click.click()
# switch to default context
driver.switch_to.default_content()
time.sleep(10)
driver.quit()
<label><input type="radio"><span>1</span></label>
label > input {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
label > span {
display: flex;
align-items: center;
}
label > span::before {
content: '';
width: 2em;
height: 2em;
border-radius: 50%;
border: 2px solid #888;
background: content-box #FFF0;
padding: 2px;
}
label > input:checked + span {
background-color: #00F;
border-color: #00F;
}
"emmet.syntaxProfiles": {
"html": {
"self_closing_tag" : true
}
}
Самая вредная переменная в желтой рамке. Ее надо убить первой.
background-color: none !important
Основная просьба: не трогать
<body style="--bs-body-bg: red">
Посоветуйте ресурсы
мне бы хотелось максимально узнать как водить курсором с помощью этой бибилиотеки как человек
volumes:
- ./initDatabase1:/docker-entrypoint-initdb.d
volumes:
- ./initDatabase2:/docker-entrypoint-initdb.d
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Audio Context Example</title>
</head>
<body>
<input type="file" id="fileInput" accept=".mp3">
<audio id="audioElement" controls></audio>
<script>
const fileInput = document.getElementById('fileInput');
const audioElement = document.getElementById('audioElement');
const audioContext = new AudioContext();
fileInput.addEventListener('change', () => {
const file = fileInput.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function (e) {
audioElement.src = e.target.result;
const source = audioContext.createMediaElementSource(audioElement);
source.connect(audioContext.destination);
audioElement.play();
};
reader.readAsDataURL(file);
}
});
</script>
</body>
</html>
time.sleep(1.5)
вот еще один фейлgit revert
последовательно для каждого коммита в обратном порядке (т.е. с конца к началу), либо git revert --no-commit HEAD~10..
git pull
git revert HEAD~10..
git commit -m "revert: newbie master push"
git push