Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Get Div Properties.

$
0
0
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.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>