I was wondering how I read data inside of a iframe. I would like to be able to click something inside a iframe. However, I can't even find the tag.
The id and name change all the time so I can't use those.
The code highlighted in blue is what I am trying to click. (second picture)
Here is what I have tried.
$target = "" $tags = $oIE.document.GetElementsByTagName("div") For $tag in $tags $class_value = $tag.GetAttribute("class") If string($class_value) = "s_92 altstyle s_93 s_94" Then $target = $tag ConsoleWrite("Tag Found " & $target.outerText&@CRLF) ExitLoop EndIf Next
I'm trying to write a script that can go to a specific work related webpage, then grab the html text out of a known recorded comment field. I have a basic understanding of HTML, but I'm confused by the website as when I open up source code I get something called frames/iframes. Not sure what that really is....
Anyways using chrome and opening up source code it made a little more sense, and could trace all content I want falls within what I see as "top/mainFrame (retrieve.do)/notesActionHistoryHistory (iframeComments.jsp)/bcwebapp:8500/oinc"
Is there an easy way to make a variable contain all the html text within this frame?
Website is on companies intranet, and each project has it's own page. I need a way to go through an excel list of projects, open up the webpage to the respective projects, then grab all the comments for those projects, then paste everything into 1 text file. My idea is to copy the excel list into an array, then use it to go one by one to the different webpages and copy the comments into an array, then paste it all into a text file. I've pretty much got all the pieces figured out, except how to grab the actual html comment data. I can do it manually but who wants to do that...
Thanks for any help in advance
I'm trying to set the value of an input value in an iframe which is a cross reference.
Here is my code:
$oFrame = _IEFrameGetObjByName($oIE, "AID_1460048722447_iframe") If @error Then ConsoleWrite("Cannot get this frame" & @CRLF) EndIf If Not IsObj($oFrame) Then ConsoleWrite("Frame was not found" & @CRLF) EndIf ;try each item one by one $o1 = _IEGetObjById($oFrame, "serviceNo_input_value") $o2 = _IEGetObjByName($oFrame, "searchCond.serviceNo") $o3 = _IEFrameGetObjByName($oFrame, "searchCond.serviceNo") $o4 = _IEFormGetObjByName($oFrame, "searchCond.serviceNo") $o5 = _IEFormElementGetObjByName($oFrame, "searchCond.serviceNo") This is the output for each $o1 to $o5 trying:
;result for $o1 --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop "C:\Program Files\AutoIt3\Include\IE.au3" (1899) : ==> The requested action with this object has failed.: If IsObj($oObject.document.getElementById($sID)) Then If IsObj($oObject^ ERROR ->00:08:17 AutoIt3.exe ended.rc:1 +>00:08:17 AutoIt3Wrapper Finished. ;result for $o2 "C:\Program Files\AutoIt3\Include\IE.au3" (1875) : ==> The requested action with this object has failed.: If IsObj($oObject.document.GetElementsByName($sName).item($iIndex)) Then If IsObj($oObject^ ERROR ->00:09:49 AutoIt3.exe ended.rc:1 +>00:09:49 AutoIt3Wrapper Finished. ;result for $o3 "C:\Program Files\AutoIt3\Include\IE.au3" (704) : ==> The requested action with this object has failed.: $oTemp = $oObject.document.parentWindow $oTemp = $oObject^ ERROR ->00:10:18 AutoIt3.exe ended.rc:1 +>00:10:18 AutoIt3Wrapper Finished. ;result for $o4 "C:\Program Files\AutoIt3\Include\IE.au3" (930) : ==> The requested action with this object has failed.: Local $oCol = $oObject.document.forms.item($sName) Local $oCol = $oObject^ ERROR ->00:10:33 AutoIt3.exe ended.rc:1 +>00:10:33 AutoIt3Wrapper Finished. ;result for $o5 --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop --> IE.au3 T3.0-2 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidObjectType +>00:10:49 AutoIt3.exe ended.rc:0 +>00:10:49 AutoIt3Wrapper Finished. I have also checked these posts for reference, but I'm missing something which I cannot find.
ie nested tables how to get to a nested table checking a checkbox that is inside an iframe html tag inside html tag how to select a radio button in an iframe iframe click a button cross domains I don't know how to copy the content of this html at once, so I provided in screenshot. Is there a way that I can get this element?
I am trying to send external commands to a flash player in an iframe. I need to get a handle on it in a browser opened by the $oIE.navigate method.
is there a way that this can be done?
Hi guys, I need help as I have worked for more than 18 hours in trying to get this resolved but couldn't. There's a registration page that has an iframe and I need to put a check on the checkbox inside that iframe. The iframe's content is pointing to external source.
Could anybody please share a complete simple _IE code to put a check on any of the checkbox in that page so I can analyze it and post my solution here? I am having trouble understanding the syntax of AutoIt. I tried this for hours and couldn't get it to work. The checkbox ID is showing as NOMATCH in AutoIt error report so I thought I had to reference the iFrame first but the iFrame too shows as NOMATCH when they are both sitting there.