SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Identify a new object/window

    Hi,

    In our application there is a object called exporttoExcel, it opens a new page and a dialog box called File Download and prompts to open/save the excel file.



    Code:

    [ ] MessageDeliveryFromAugust.SetActive( )
    [ ] MyApp.ExportTo2.Click ()
    [ ] SaveAs1.SetActive ()
    [ ] SaveAs1.Move (224, 113)
    [ ] SaveAs1.Save.Click ()
    [ ] DownloadComplete.SetActive ()
    [ ] DownloadComplete.Close.Click ()


    I also added the windows declarations
    [+] window DialogBox FileDownload
    [+] window DialogBox SaveAs
    [+] window DialogBox DownloadComplete

    I tried with the open agent but it says the syntax is not valid.

    [ ] desktop.<BrowserApplication>find("//BrowserApplication[2]").<Dialog>find("//Dialog[@caption='File Download']").<PushButton>find("//PushButton[@caption='Save']").select();
    [ ] desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").<TextField>find("//TextField").setPosition(new TextPosition(0, 23));
    [ ] desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").<TextField>find("//TextField").setText("cingularToAfrica.xls");
    [ ] desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").<PushButton>find("//PushButton[@caption='Save']").select();
    [ ] desktop.<Window>find("//Window[@caption='Download complete']").<PushButton>find("//PushButton[@caption='Close']").select();
    [ ]


    Any help is really appreciated.

    Thanks!

  2. #2
    Junior Member
    Join Date
    Feb 2010
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Identify a new object/window

    I tried the same with sik4j and it says object not identified.

    emdr.<DomButton>find("//INPUT[@id='submitButton']").select();
    desktop.<BrowserApplication>find("//BrowserApplication[1]").<BrowserWindow>find("//BrowserWindow").find("//A[@textContents='Export to'][2]").<DomElement>find("/IMG[@src='http://10.10.xx.xx:8081/auto/images/excel_white.png']").domClick();
    Thread.sleep(60000);

    Dialog dialog = desktop.<BrowserApplication>find("//BrowserApplication[3]").<Dialog>find("//Dialog[@caption='File Download']");
    desktop.<BrowserApplication>find("//BrowserApplication[3]").<Dialog>find("//Dialog[@caption='File Download']").<PushButton>find("//PushButton[@caption='Save']").select();
    desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").<TextField>find("//TextField").setPosition(new TextPosition(0, 19));
    desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").releaseMouse(1, new Point(155, 362), ModifierKey.None);
    desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").<TextField>find("//TextField").setText("CingularToAfrica.xls");
    desktop.<Window>find("//Window[@caption='0% of ExportToExcel.do from 10.10.xx.xx Completed']").<Dialog>find("//Dialog[@caption='Save As']").<PushButton>find("//PushButton[@caption='Save']").select();
    desktop.<Window>find("//Window[@caption='Download complete']").<PushButton>find("//PushButton[@caption='Close']").select();

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:50 AM.

Copyright BetaSoft Inc.