Have you tried to add the following command to your recorded script to see
if it works?

  void chooseOkOnNextConfirmation();

  void answerOnNextPrompt(String answer);

Or can you record the confirmation popup window directly?

Thanks,

Jian

On Thu, Jan 27, 2011 at 11:33 AM, Kamal Ahmed <[email protected]>wrote:

> Hi Dev,
>
> I am using Tellurium to download a book but when the widget pops up with
> option buttons "OK" and "Cancel' ho do i use The IDE to click on "OK" button
>
> Here is the script
>
>         ui.Container(uid: "Vsc", clocator: [tag: "div", class: "vsc"]){
>                 UrlLink(uid: "Which", clocator: [tag: "a", text: "Which",
> class: "l"], respond: ["mouseDown"])
>             }
>
>         ui.Container(uid: "Table", clocator: [tag: "table"]){
>                 UrlLink(uid: "Httpwwwdiveintopythonorg", clocator: [tag:
> "a", text: "http://www.diveintopython.org/";])
>                 Container(uid: "Section", clocator: [tag: "tr"]){
>                     Container(uid: "Votecell", clocator: [tag: "td",
> direct: "true", class: "votecell"]){
>                         UrlLink(uid: "ThisAnswer", clocator: [tag: "a",
> text: "up vote", title: "This answer is useful (click again to undo)",
> class: "vote-up-off"])
>                         UrlLink(uid: "ThisAnswer2", clocator: [tag: "a",
> text: "down vote", title: "This answer is not useful (click again to undo)",
> class: "vote-down-off"])
>                     }
>                     Container(uid: "Part", clocator: [tag: "td", direct:
> "true"]){
>                         Container(uid: "Fw", clocator: [tag: "table",
> direct: "true", class: "fw"]){
>                             Container(uid: "Section", clocator: [tag:
> "tr"]){
>                                 Container(uid: "Vt", clocator: [tag: "td",
> direct: "true", class: "vt"]){
>                                     UrlLink(uid: "PermalinkTo", clocator:
> [tag: "a", text: "link", title: "permalink to this answer"])
>                                     UrlLink(uid: "Flagpost171856",
> clocator: [tag: "a", text: "flag", title: "flag this post for serious
> problems or moderator attention", id: "flag-post-171856"])
>                                 }
>                                 Container(uid: "Postsignature", clocator:
> [tag: "td", direct: "true", class: "post-signature"]){
>                                     UrlLink(uid: "Link", clocator: [tag:
> "a"])
>                                     Image(uid: "Img", clocator: [tag:
> "img"])
>                                     UrlLink(uid: "ThomasDavid", clocator:
> [tag: "a", text: "Thomas David Baker"])
>                                 }
>                             }
>                         }
>                     }
>                 }
>             }
>
>         ui.Container(uid: "Section", clocator: [tag: "div", class:
> "section"]){
>                 UrlLink(uid: "DownloadDive", clocator: [tag: "a", text:
> "download it", title: "Download Dive Into Python"])
>             }
>
>         ui.Container(uid: "DownloadAs", clocator: [tag: "a", title:
> "Download as PDF (764 KB)"]){
>                 TextBox(uid: "PDF", clocator: [tag: "span", text: "PDF",
> direct: "true", class: "acronym"])
>             }
>
>         open "
> http://www.google.com/search?hl=en&source=hp&biw=1440&bih=558&q=Python+for+sysadmin&aq=f&aqi=g1&aql=&oq=
> "
>         click "Vsc.Which"
>         waitForPageToLoad 30000
>
>         click "Table.Httpwwwdiveintopythonorg"
>         waitForPageToLoad 30000
>
>         click "Section.DownloadDive"
>
>         click "DownloadAs.PDF"
>         waitForPageToLoad 30000
>
>
> I tried to get the DOM Object using Firebug, but could not figure out how
> to inspect
>
> Thanks,
> -Kamal.
>
> --
> You received this message because you are subscribed to the Google Groups
> "tellurium-developers" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<tellurium-developers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-developers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to