Ask a Question

Which is the best way to parameterize check box controls.(Delay in clicking checkboxes )

SOLVED
Jeb
Occasional Contributor

Which is the best way to parameterize check box controls.(Delay in clicking checkboxes )

Jeb_0-1599477137704.png

 

As seen in the above image, I need to parameterize the check box dynamically from an excel. Currently I am using a combination of both keyword tests(to extract values from the excel) and scripts to dynamically find the element on the page using the previously read value. PFB the code for clicking the check box.

Jeb_1-1599477417893.png

Issue:- It takes atleast 2 mins for this check box to get clicked. the other steps are pretty fast except for this one.

1) Is there any other way to parameterize the check box controls ?

2) Why is the script slowing down at this step?

 

Thanks in advance.

-Jeb

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Which is the best way to parameterize check box controls.(Delay in clicking checkboxes )

I would try using just FindChild and the text from the checklist object rather than xpath

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findch...

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: Which is the best way to parameterize check box controls.(Delay in clicking checkboxes )

I would try using just FindChild and the text from the checklist object rather than xpath

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findch...

 


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

View solution in original post

sonya_m
Community Manager

Re: Which is the best way to parameterize check box controls.(Delay in clicking checkboxes )

Great advice Marsha, as always!

 

@Jeb does this help?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Jeb
Occasional Contributor

Re: Which is the best way to parameterize check box controls.(Delay in clicking checkboxes )

Hi, @sonya_m .

 

I am currently using FindElement instead of FindChildByXpath just to retain the existing xpath structure and the execution time pretty fast.

 

Jeb_0-1600147501009.png

 

 

Thank you @Marsha_R for the suggestion. 

 

Regards,

-Jeb

 

cancel
Showing results for 
Search instead for 
Did you mean: