Handling pop-up prompts

View: New views
4 Messages — Rating Filter:   Alert me  

Handling pop-up prompts

by anil_jacob :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


How does Grinder handle pop-up windows like the ones which ask for confirmations with an "OK button or with "yes", "no" buttons, as an example?

Also how does Grinder handle downloads of files from webpages, will it be downloaded to a location on the file system where grinder is running?

Thank you,
Anil

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Re: Handling pop-up prompts

by Vishnugupt Chanakya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Anil,

here is code for write to file........yes it is stores in log directory
you can store text or image using data

def WriteToFile(imgPng):
    filename=grinder.getFilenameFactory().createFilename("page","-%d.txt"
%grinder.runNumber)
    file =open(filename,"w")
    print >> file, imgPng
    file.close()

OR

def WriteToFile(imgPng):
    filename=grinder.getFilenameFactory().createFilename("page","-%d.png"
%grinder.runNumber)
    file =open(filename,"wb")
    file.write(imgPng)
    file.close()

-Newbie
On Mon, Jun 23, 2008 at 10:28 AM,  <anil_jacob@...> wrote:

>
> How does Grinder handle pop-up windows like the ones which ask for confirmations with an "OK button or with "yes", "no" buttons, as an example?
>
> Also how does Grinder handle downloads of files from webpages, will it be downloaded to a location on the file system where grinder is running?
>
> Thank you,
> Anil
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> grinder-use mailing list
> grinder-use@...
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Parent Message unknown Re: Handling pop-up prompts

by anil_jacob :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Thank you very much.

How about popup  prompts or windows, how does Grinder handle that?

Thx,
Anil
 -------------- Original message ----------------------
From: "Vishnugupt Chanakya" <chaanakya@...>

> Hi Anil,
>
> here is code for write to file........yes it is stores in log directory
> you can store text or image using data
>
> def WriteToFile(imgPng):
>     filename=grinder.getFilenameFactory().createFilename("page","-%d.txt"
> %grinder.runNumber)
>     file =open(filename,"w")
>     print >> file, imgPng
>     file.close()
>
> OR
>
> def WriteToFile(imgPng):
>     filename=grinder.getFilenameFactory().createFilename("page","-%d.png"
> %grinder.runNumber)
>     file =open(filename,"wb")
>     file.write(imgPng)
>     file.close()
>
> -Newbie
> On Mon, Jun 23, 2008 at 10:28 AM,  <anil_jacob@...> wrote:
> >
> > How does Grinder handle pop-up windows like the ones which ask for
> confirmations with an "OK button or with "yes", "no" buttons, as an example?
> >
> > Also how does Grinder handle downloads of files from webpages, will it be
> downloaded to a location on the file system where grinder is running?
> >
> > Thank you,
> > Anil
> >
> > -------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > _______________________________________________
> > grinder-use mailing list
> > grinder-use@...
> > https://lists.sourceforge.net/lists/listinfo/grinder-use
> >
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> grinder-use mailing list
> grinder-use@...
> https://lists.sourceforge.net/lists/listinfo/grinder-use


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Re: Handling pop-up prompts

by Philip Aston-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The Grinder will record and play back whatever your browser does at an
HTTP level. It is blissfully unaware whether or not requests were
generated by popups. If the popups are generated, say, by Java Script;
The Grinder does not interpret and run the JavaScript itself. Instead it
will be replaying whatever the browser did.

- Phil

anil_jacob@... wrote:

> Thank you very much.
>
> How about popup  prompts or windows, how does Grinder handle that?
>
> Thx,
> Anil
>  -------------- Original message ----------------------
> From: "Vishnugupt Chanakya" <chaanakya@...>
>  
>> Hi Anil,
>>
>> here is code for write to file........yes it is stores in log directory
>> you can store text or image using data
>>
>> def WriteToFile(imgPng):
>>     filename=grinder.getFilenameFactory().createFilename("page","-%d.txt"
>> %grinder.runNumber)
>>     file =open(filename,"w")
>>     print >> file, imgPng
>>     file.close()
>>
>> OR
>>
>> def WriteToFile(imgPng):
>>     filename=grinder.getFilenameFactory().createFilename("page","-%d.png"
>> %grinder.runNumber)
>>     file =open(filename,"wb")
>>     file.write(imgPng)
>>     file.close()
>>
>> -Newbie
>> On Mon, Jun 23, 2008 at 10:28 AM,  <anil_jacob@...> wrote:
>>    
>>> How does Grinder handle pop-up windows like the ones which ask for
>>>      
>> confirmations with an "OK button or with "yes", "no" buttons, as an example?
>>    
>>> Also how does Grinder handle downloads of files from webpages, will it be
>>>      
>> downloaded to a location on the file system where grinder is running?
>>    
>>> Thank you,
>>> Anil
>>>      



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use