Hi,

On Mon, Oct 20, 2014 at 10:25 AM, Ayesha Dissanayaka <[email protected]>
wrote:

> Hi,
>
> I'm also having this concern while executing UI test cases in WSO2 ES.
>
> In my case ES Publisher App take ablout 15sec in order to populate
> properly after completing indexing and all. Hence, I have to thread sleep
> all the test classes. I would also like to know whether this is the
> recommended way to slow down the web driver, or can we implicitly wait to
> start the test execution by the framework.
>

Never use thread sleeps for waits unless it is really required and no any
other way to achieve page waits. You need to write your own wait function
based on the elements you are expecting to be visible in next step.

References given at [1] would be helpful.

[1]
http://selenium-tutorial.blogspot.com/2014/03/webdriver-wait-for-page-load.html

Thanks,
Krishantha.

>
> Thanks!
> - Ayesha
>
> On Fri, Oct 17, 2014 at 10:10 AM, Sohani Weerasinghe <[email protected]>
> wrote:
>
>> Hi,
>>
>> When using selenium web driver to write test cases, currently  I am using
>> Thread sleeps in order to control the speed of the browser. Is this the
>> recommended way to slow down the execution speed?
>>
>> Please note that I am also using explicit waits to wait for certain
>> conditions to occur before proceeding further and implicit waits to poll
>> the DOM for a certain amount of time to find an element.
>>
>> Thanks,
>> Sohani
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog     :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: [email protected] <[email protected]>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to