Kamakazy Posted December 12, 2012 Posted December 12, 2012 hey Guys/Girls. I have been at this one for a while and slowly snailing forward but Im stuck. Is it possible to obtain the name of a div? <iframe name="THIS IS WHAT I AM AFTER" id="BlueLake"> <div id="Whoopy" name="redrose"> Some code. </div> </iframe> The name property is automatically generated based on the scenario. It will always have "fancybox-frame" as the first part but the following 13 numbers are random. So it will look something like "fancybox-frame1234567890123". This is for an inhouse product that I am automating to eliminate as much regression testing as possible, and seeing that a server will run the scripts once compiled, I have no way to feed it the needed value. I have tried the following script and I was able to read data from the form contained withing the iframe. Local $oIE = _IEAttach("FancyBox Initiation", "Instance", 1) Local $get = _IEPropertyGet($oIE, "innerhtml") $oFrame1 = _IEFrameGetObjByName($oIE, "fancybox-frame1355307967260") $oInput = _IEGetObjByName($oFrame1, "preferred_name_input") $sValue = _IEFormElementGetValue($oInput) MsgBox(64, "Results", "Value = " & $sValue) Is it possible to isolate only the div name ("fancybox-frame1234567890123") and log only that name to an ini file (I can already read and write to ini)? I appreciate any help in this regard. Kama. _IEFrameGetObjByID |
JohnOne Posted December 12, 2012 Posted December 12, 2012 _IEFrameGetCollection any good to you? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Kamakazy Posted December 12, 2012 Author Posted December 12, 2012 Aaah, the part I forgot to mention. I have tried that but to put it in light. The id of the second div inside the iframe is called "fancybox-content" So are the 3rd, 4th, and 5th divs. So What is returende is not what I am looking for. I need to be able to isolate the "name="X"" inside <iframe>. I can only access the iframe if I have that property set in the script. I just cant get it isolated once it's generated. PS. the number is generated once per client. so if a client has a number, it will never change again. _IEFrameGetObjByID |
Kamakazy Posted December 13, 2012 Author Posted December 13, 2012 Solution found - Although I have not managed to obtain the name via code, I managed to get to it based on ID. _IEFrameGetObjByID |
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now