I'm trying to automate script that go to my linktree link then click on "click here" and then click on pin and it is working perfectly.But when it click on pin, url open in new tab and my chrome driver close in few seconds automatically everytime it click on pin.And also i get unable to render error.Please help me to solve the problem.
I just want that chrome driver dont crash automatically.I just want to use chrome driver, not want to use firefox gecko driver.Please help me.
driver.maximize_window()
driver.get("https://linktr.ee/dogramilly982")
time.sleep(15)
title = driver.find_element(By.XPATH, "//*[contains(text(), 'Click Here')]")
driver.execute_script("arguments[0].click();", title)
time.sleep(8)
#after this code click on pin it open url in new tab and chrome driver crash automatically
pin = driver.find_element(By.XPATH, "//span[@data-pin-log='embed_pin']")
driver.execute_script("arguments[0].click();", pin)
time.sleep(8)
I just want that chrome driver dont crash automatically.I just want to use chrome driver, not want to use firefox gecko driver.Please help me.
driver.maximize_window()
driver.get("https://linktr.ee/dogramilly982")
time.sleep(15)
title = driver.find_element(By.XPATH, "//*[contains(text(), 'Click Here')]")
driver.execute_script("arguments[0].click();", title)
time.sleep(8)
#after this code click on pin it open url in new tab and chrome driver crash automatically
pin = driver.find_element(By.XPATH, "//span[@data-pin-log='embed_pin']")
driver.execute_script("arguments[0].click();", pin)
time.sleep(8)