Powershell question - frame content

Lotuser

New Member
Hello.

PowerShell section is closed.

I have question. Maybe someone can help me:


I'm trying to read frame content in powershell:

Code:
$ie = New-Object -com InternetExplorer.Application
$ie.visible = $true
$ie.navigate2("http://lala/perion/browse")
while($ie.busy) {start-sleep 3}
($ie.Document.getElementsByTagName("input") | ? {$_.name -eq 'user'}).Value = 'lala'
($ie.Document.getElementsByTagName("input") | ? {$_.name -eq 'pass'}).Value = 'lala'
($ie.Document.getElementsByTagName("input") | ? {$_.type -eq 'submit'}).click()
$ie.Document.documentElement.all | d:\test\wd.txt

Steps:
1. new object
2. IE is visible
3. navigate to website
4. sleep because IE is opening
5. enter username
6. enter password
7. click "SUBMIT"
8. show all elements in CODE and write to filr

now I need contect of this frame
20121030screenhunter011.jpg

This red frame...

in step 8 I have in file all elements

and I know that frame is under

src : /Hyperion/browse/browseList?

tagName : FRAME
parentElement : System.__ComObject
style : System.__ComObject
onhelp :
onclick :
ondblclick :
onkeydown :
onkeyup :
onkeypress :
onmouseout :
onmouseover :
onmousemove :
onmousedown :
onmouseup :
document : System.__ComObject
title : Contenu
language :
onselectstart :
sourceIndex : 14
recordNumber :
lang :
offsetLeft : 144
offsetTop : 0
offsetWidth : 1292
offsetHeight : 650
offsetParent : System.__ComObject
innerHTML :
innerText :
outerHTML : <FRAME title=Contenu marginHeight=0 src="/Hyperion/browse/browseList?" name=data marginWidth=0>
outerText :
parentTextEdit :
isTextEdit : False
filters :
ondragstart :
onbeforeupdate :
onafterupdate :
onerrorupdate :
onrowexit :
onrowenter :
ondatasetchanged :
ondataavailable :
ondatasetcomplete :
onfilterchange :
children : System.__ComObject
all : System.__ComObject
scopeName : HTML
onlosecapture :
onscroll :
ondrag :
ondragend :
ondragenter :
ondragover :
ondragleave :
ondrop :
onbeforecut :
oncut :
onbeforecopy :
oncopy :
onbeforepaste :
onpaste :
currentStyle : System.__ComObject
onpropertychange :
tabIndex : -32768
accessKey :
onblur :
onfocus :
onresize :
clientHeight : 650
clientWidth : 1292
clientTop : 0
clientLeft : 0
readyState : complete
onreadystatechange :
onrowsdelete :
onrowsinserted :
oncellchange :
dir :
scrollHeight : 650
scrollWidth : 1292
scrollTop : 0
scrollLeft : 0
oncontextmenu :
canHaveChildren : False
runtimeStyle : System.__ComObject
behaviorUrns : System.__ComObject
tagUrn :
onbeforeeditfocus :
readyStateValue :
isMultiLine : True
canHaveHTML : False
onlayoutcomplete :
onpage :
inflateBlock :
onbeforedeactivate :
contentEditable : inherit
isContentEditable : False
hideFocus : False
disabled : False
isDisabled : False
onmove :
oncontrolselect :
onresizestart :
onresizeend :
onmovestart :
onmoveend :
onmouseenter :
onmouseleave :
onactivate :
ondeactivate :
glyphMode :
onmousewheel :
onbeforeactivate :
onfocusin :
onfocusout :
uniqueNumber : 26
uniqueID : ms__id26
nodeType : 1
parentNode : System.__ComObject
childNodes : System.__ComObject
attributes : System.__ComObject
nodeName : FRAME
nodeValue :
firstChild :
lastChild :
previousSibling : System.__ComObject
nextSibling :
ownerDocument : System.__ComObject
dataFld :
dataSrc :
dataFormatAs :
role :
ariaBusy :
ariaChecked :
ariaDisabled :
ariaExpanded :
ariaHaspopup :
ariaHidden :
ariaInvalid :
ariaMultiselectable :
ariaPressed :
ariaReadonly :
ariaRequired :
ariaSecret :
ariaSelected :
ie8_attributes :
ariaValuenow :
ariaPosinset :
ariaSetsize :
ariaLevel :
ariaValuemin :
ariaValuemax :
ariaControls :
ariaDescribedby :
ariaFlowto :
ariaLabelledby :
ariaActivedescendant :
ariaOwns :
ariaLive :
ariaRelevant :
constructor :
src : /Hyperion/browse/browseList?
name : data
border :
frameBorder :
frameSpacing :
marginWidth : 0
marginHeight : 0
noResize : False
scrolling : auto
contentWindow :
onload :
allowTransparency : False
longDesc :
borderColor :
height : 650
width : 1292
contentDocument :
ie8_src :
ie8_longDesc :
ie8_frameBorder :

So how to enter DEEPER and enter this frame and get code for this frame ?

Best Regards
L
 

My Computer

System One

  • Monitor(s) Displays
    2
Back
Top