kaliiiiiiiiii / Selenium-Driverless

undetected Selenium without usage of chromedriver
https://kaliiiiiiiiii.github.io/Selenium-Driverless/
Other
412 stars 52 forks source link

no target for iframe found #172

Closed zerofishy closed 5 months ago

zerofishy commented 5 months ago

always i get selenium_driverless.types.target.NoSuchIframe: no target for iframe found

frame_reference = await driver.find_element(By.XPATH, '//*[@id="root"]/div[2]/div[2]/div/div/iframe') await asyncio.sleep(5)

    if frame_reference:
        print("Found iframe")

        # Switch to the iframe
        await driver.switch_to.frame(frame_reference)

but i see "Found iframe"

kaliiiiiiiiii commented 5 months ago

use iframe.content_elem

zerofishy commented 4 months ago

use iframe.content_elem

thank you so fucking match bro