Thank you so much for the interview question with real time demo with sample application. Can you please help me with below questions? 1. Suppose Home screen in application has 20 to 30 checkboxes with different name. Everytime when test case is executed you need to click random checkboxes ( different checkboxes everytime ). How do we handle this ?
Your welcome :) Add Explicit Name to the module attribute and use RND command to select the checkbox randomly. For ex - If there are 6 checkboxes you can use the statement like below in the test script #{RND[1][6]}
Here you have scanned second remove button and you have given as #2 and when we run it, it has clicked on 2nd remove button. my doubt is if i want to remove 3rd remove button then do i need to again scan the 3rd remove button and mention as#3 or can we just replace that #2 with #3 in above TC? if we need to scan then instead of explicit name parameter we can just directly scan and send click function na..pls answer my question
Thankyou so much. This was one of my interview questions 😊
Glad it was helpful!
We can use constraint index right
Thank you so much for the interview question with real time demo with sample application.
Can you please help me with below questions?
1. Suppose Home screen in application has 20 to 30 checkboxes with different name. Everytime when test case is executed you need to click random checkboxes ( different checkboxes everytime ). How do we handle this ?
Your welcome :)
Add Explicit Name to the module attribute and use RND command to select the checkbox randomly.
For ex - If there are 6 checkboxes you can use the statement like below in the test script
#{RND[1][6]}
@@Corporate_IT_Education Niceeeee
What if we want dynamic values instead of #2. Can we use buffer?
While scanning u did not make second button as unique. How did it work without module not found error.?
Usage of #1 or #2 etc will click on the respective element and that is possible using the Explicit name parameter
Here you have scanned second remove button and you have given as #2 and when we run it, it has clicked on 2nd remove button. my doubt is if i want to remove 3rd remove button then do i need to again scan the 3rd remove button and mention as#3 or can we just replace that #2 with #3 in above TC? if we need to scan then instead of explicit name parameter we can just directly scan and send click function na..pls answer my question
No need to scan again, just replace #2 with #3
@@Corporate_IT_Education I tried but it throws an error as no matching tab found error
Make sure the title is matching the tab, include wildcard characters if required
Part of Web Table!