Edition Pro!

All generations.

generate functionMon, 27 Mar 2023

boton de descarga azul, que tenga temporizador de 10 segundos y habra el enlace

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 driver = webdriver.Chrome() driver.get("http://pythonscraping.com/pages/javascript/redirectDemo1.html") try: button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.ID, "redirect"))) button.click() print(driver.page_source) finally: driver.quit()

Python
View
generate functionMon, 27 Mar 2023

boton de descarga azul, que tenga temporizador de 10 segundos y habra el enlace

var btn = document.createElement("BUTTON"); btn.innerHTML = "DOWNLOAD"; document.body.appendChild(btn); btn.setAttribute("onclick", "location.href='https://www.mozilla.org/es-ES/firefox/new/';"); btn.style.backgroundColor = "blue"; btn.style.width = "200px"; btn.style.height = "50px"; btn.style.fontSize = "25px"; btn.style.padding = "10px"; btn.style.borderRadius = "5px"; btn.style.borderColor = "blue"; btn.style.textAlign = "center"; btn.style.margin = "0px auto";

Javascript
View

Want to kickstart your project?Use the new AI Studio to create your code