0

I'm attempting to execute code within the console of Inspect Element using Python, within an already open tab window. However, my code opens a new browser window instead.

To clarify, I wrote an example to demonstrate what I'm trying to achieve, but it resulted in the opening of a new browser window.

this is my experimental code:

from selenium import webdriver from selenium.webdriver.common.by import By

driver = webdriver.Firefox()

driver.get("www.example.com")

start_button = driver.find_element(By.ID, "ctl00$ContentPlaceHolder1$ImageButton_StartNormal") start_button.click()

stormcph
  • 1
  • 2
  • Please share the code so that we can help you. – Matt Ellen Feb 09 '23 at 11:07
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 09 '23 at 13:06

0 Answers0