Queries

14 views
Skip to first unread message

Shishir Tripathi

unread,
Jul 17, 2018, 4:17:53 PM7/17/18
to qapl...@googlegroups.com, Shishir Tripathi
Hi All
Below are two questions any leads would be appreciate:
1)
I want to reduce time while executing the program in Chrome/Mozilla browser. In below snapshot you can see time taken by 1st case(facebook Test Cases is 40.823sec), is there any criteria to reduce this execution time?

I implement Implicitlywait and Pageloadtimeout as well and both are of 30 sec, while reducing these waits we can reduce execution time or is there any other way to reduce this execution time? no Thread.sleep() I used in my code.

Below two statements i used in my code:
// driver.manage().timeouts().pageLoadTimeout(30 , TimeUnit.SECONDS);
// driver.manage().timeouts().implicitlyWait(30 , TimeUnit.SECONDS);

image.png
2) if there is a list of multiple webElements for example 500 elements and if i need to go to direct 100th element what is a easiest/ convenient way? Apart from Xpath.

Please share answers asap.

Shishir Tripathi

unread,
Jul 18, 2018, 3:40:49 AM7/18/18
to qapl...@googlegroups.com
Hi All

Please anybody respond.
Hope my both queries are clear.

Regards
Shishir
--
9000294572
Shishir I-phone

Shishir Tripathi

unread,
Jul 21, 2018, 8:20:12 AM7/21/18
to qapl...@googlegroups.com
Hi All

Please anybody respond either yes/no on above queries.

vivek kumar

unread,
Jul 21, 2018, 8:27:31 AM7/21/18
to qapl...@googlegroups.com
Shishir, 
xpath is the best way as u can sometimes encounter no 'id', 'class name' or other locators. So u can use xpath and iterate thru the list using iterator or for each. First u have to collect all the options into a list using collection concept and then iterate thru the list. 

--
You received this message because you are subscribed to the Google Groups "QAPlanet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qaplanet+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vivek kumar

unread,
Jul 21, 2018, 8:28:52 AM7/21/18
to qapl...@googlegroups.com
Also pageload timeout is used to tell the dom to cut the execution if the specified time of page loading is crossed. 

Shishir Tripathi

unread,
Jul 21, 2018, 8:34:28 AM7/21/18
to qapl...@googlegroups.com
Hi Vivek

Thanks for reply.

If same code for Chrome browser is taking 4.3sec and Same code is taking 7sec in mozilla and i need to reduce this time execution in Mozilla. Is there any way to cut down execution time in Mozilla browser?

dinesh neeli

unread,
Jul 21, 2018, 8:39:32 AM7/21/18
to qapl...@googlegroups.com
Shishir,


You are using implicit wait, just have try with explicit wait!!

It might help you..

Regards,
Dinesh N



On Sat, Jul 21, 2018, 6:04 PM Shishir Tripathi <14shi...@gmail.com> wrote:
Hi Vivek

Thanks for reply.

If same code for Chrome browser is taking 4.3sec and Same code isn't taking 7sec in mozilla and i need to reduce this time execution in Mozilla. Is there any way to cut down execution time in Mozilla browser?

vivek kumar

unread,
Jul 21, 2018, 8:45:43 AM7/21/18
to qapl...@googlegroups.com
Haha.. I also faced this. I guess Mozilla is slower than chrome. I haven't figured out an alternative to reduce the time though. 

Shishir Tripathi

unread,
Jul 21, 2018, 8:47:51 AM7/21/18
to qapl...@googlegroups.com
😊 thanks for reply. 
9000294572
Shishir I-phone

Shishir Tripathi

unread,
Jul 21, 2018, 8:48:56 AM7/21/18
to qapl...@googlegroups.com
Thanks Dinesh, i'll check n figure it out if it works.
9000294572
Shishir I-phone

abhinav aerabati

unread,
Aug 2, 2018, 6:12:05 AM8/2/18
to qapl...@googlegroups.com
Hi All,

Training for business analysis available. Interested candidates can ping 

Thanks,
Abhinav

repalle prathibha sourabhi

unread,
Aug 3, 2018, 8:35:37 AM8/3/18
to qapl...@googlegroups.com
Hi 
       May I know the details regarding course details , job opportunities at present and eligibility 
I completed my MBA with HR 2012 pass out and I don’t have any work experience as I have been to UK after my marriage and came back to India last year 

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages