Sign in to follow this  
Followers 0
ubi

Find an immage a explorer web page

1 post in this topic

Hi. I'm trying to solve this problem but it's too hard for me.

Here you can find an html sample:

<input type="text" value="5/3/2011"

id="ctl01_PortalContent_DateChooser1_TabDateChooser_TabPanelDateCtrl_StartDate_input"

name="ctl01_PortalContent_DateChooser1_TabDateChooser_TabPanelDateCtrl_StartDate_input"

readonly="true"

style="border-style:none;border-width:0;padding-left:3px;width:100%;height:100%;float:left;"

/>

</td>

<td valign="middle" align="right" >

<img vspace='0'

hspace='0'

alt=''

id="ctl01_PortalContent_DateChooser1_TabDateChooser_TabPanelDateCtrl_StartDate_img"

src='../../images/OEEimages/Calendar.png'

/>

I tryed to click in many way to Calendar.png (it will open a calendar where you can define a date) .

This is the last attempt.

$oImgs = _IEImgGetCollection($oIE)

For $oImg in $oImgs

FileWrite($file, $oImg.src & @CRLF)

If String($oImg.src) = "http://localhost/SITApps/SITPortal/images/OEEimages/Calendar.png" Then

FileWrite($file, "ok" & @CRLF)

$r = _IEAction($oImg, "click")

FileWrite($file, $r & @CRLF)

FileWrite($file, @error & @CRLF)

EndIf

Next

The program arrive inside If and print ok.

$r is equal to 1 and @error returns 0.

How can help me????

Thanks a lot

Ubaldo

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  
Followers 0