please provide the screenshot

On Apr 17, 2:09 pm, spike <[email protected]> wrote:
> Hi
>
> I've a problem handling a sub window which is created using ajax, the
> scenario i'm working in is i've a image which can be applied as theme
> to my webpage so when i'm clicking on the image the image opens in a
> new window with a "Applytheme" button at the bottom. Now i need to
> click on the "Applytheme" button in the new window which i'm not able
> to do. so please help me with this.
>
> i used the following code but it didnt work
>
> e.button(:value, "Log In").click
> ie.link(:href, "javascript:__doPostBack
> ('ctl00$lnkbtnPreferences','')").click
> ie.link(:href, "http://192.168.25.10:215/ChangeSkin.aspx";).click
> ie.button(:name, "ctl00$cph$ImageOrange").click
> sleep 5
> NOW THE IMAGE OPENS AS A SUB WINDOW
> #ie.image(:id, "__VIEWSTATE").click
> #ie2 = Watir::IE.attach(:url, 'ChangeSkinPopupWindow.aspx')
> #ie3 = Watir::IE.attach(:title, 'Change Skin')
>
> ie.button(:name, "btnAppltTheme").document.scrollintoview
> ie.button(:name,"btnAppltTheme").click
> end
> end
>
> I TRIED USING DIALOG ALSO BUT IT DIDNT DO ANY GOOD.
> #dialog = ie.modal_dialog
> #dialog = ie.modal_dialog(:hwnd)
> #dialog = ie.modal_dialog(:title, 'Change Skin')
>
> so please suggest some solution...
>
> thankingyou
--~--~---------~--~----~------------~-------~--~----~
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