Jump to content
Sign in to follow this  

Get Div Properties.

Recommended Posts


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.



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.


Share this post

Link to post
Share on other sites

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.


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.