Search code examples
pythonhtmlframepamieframeset-iframe

pamie How to access variables in framset


my issue is about accessing Frame that included into frameset so it's like that

IFRAME 
 \
   FRAMESET
           \FRAMESET
                   \
                    FRAME

i've tried so hard to solve it , but i only could access to the iframe and it's automatically accessed to FRAMESET but still can't find a way to access the last frame !

so let's look into the pamie :

self.frameName = None               # The current frame name or index. Nested frames are
                                    # supported in the format frame1.frame2.frame3

i don't understand what the mean by saying supported in the format ..etc


Solution

  • ieobj.Document.Frames[framName].document.Frames[innerFrame]
    

    Set value

    ieobj.Document.Frames[framName].document.Frames[innerFrame].document.forms[myForm][textBox].value="someval"