CeBiDeX CeBiDeX - 2 years ago 87
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 ?

Answer Source

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!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download