CeBiDeX CeBiDeX - 6 months ago 4x
Python Question

How can i read this src text with selenium in python?

<iframe id="frameNewAnimeuploads0" src=";hd=1" width="530" height="410" frameborder="0" scrolling="no" allowfullscreen=""></iframe>

I want to read src text.

How can i read this ?


This is how you can do it. Firs you need to identify the frame which is a WebElement and then you can get its Attribute using getAttribute method.

frame = driver.find_element_by_id('frameNewAnimeuploads0')

Hope it helps!