Thanks Charley,

the below code within
We are able to access div  tag *"footer"* like $s = @ie_ref.div(:id,
"footer"), after that m unable to catch the click on "*Update"*.

*html code:*

<div id="socialsiteWidget"><div id="widgetBody" class="clearfloat">
</div>
<div id="widgetFooter" class="clearfloat">
<div id="footer">
<center>
<ul>
<li>
<a onclick="onClickEditProfile()">
*<img title="Edit Profile" src="../local_gadgets/files/vcard_edit.png"/>*
</a>
</li>
<li>
</li>
</ul>
</center>
</div>
</div>
<style type="text/css">
</style>
</div>

*my code*:

   url = "http://myhome/";
    @ie_ref = Watir::IE.start(url)
    @ie_ref.goto(url)
    @ie_ref.text_field(:name, "j_username").set("narendra")
    @ie_ref.text_field(:name, "j_password").set("narendra")
    @ie_ref.button(:value,"login").click
    Watir.autoit.Send('{ENTER}')
    @ie_ref.link(:text,Profile/).click
    @ie_ref.frame(:id,"TB_iframeContent").frame(:name, "remote_iframe_151")
    #...@ie_ref.frame(:name, "remote_iframe_151")
    $s = @ie_ref.div(:id, "footer")

After that i m unable to click on below image.

<img title="Edit Profile" src="../local_gadgets/files/vcard_edit.png"/>

Please help me out from this


On Mon, Feb 23, 2009 at 9:07 PM, Charley Baker <[email protected]>wrote:

> We need more information if you want some help - the html for your
> controls, a snippet of your script and any errors. If you send this, you'll
> be more likely to get help from the group.
>
>
> Charley Baker
> blog: http://charleybakersblog.blogspot.com/
> Lead Developer, Watir, http://wtr.rubyforge.org
> QA Architect, Gap Inc Direct
>
>
>
> On Mon, Feb 23, 2009 at 1:12 AM, Narendra Gollapilli <
> [email protected]> wrote:
>
>>
>>
>> On Mon, Feb 23, 2009 at 12:45 PM, Narendra Gollapilli <
>> [email protected]> wrote:
>>
>>> hi,
>>>
>>> I m new to Watir its very good frame work for automate web application.
>>> In my application gadgets are there m unable write code to capture/click
>>> on those Please help me out this.
>>>
>>>
>>> Thanks&Regards,
>>>  Narendra.
>>>
>>
>>
>>
>> --
>> Thanks&Regards,
>> Narendra.
>>
>>
>>
>
> >
>


-- 
Thanks&Regards,
Narendra.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to