Ask a Question

how to click on a checkbox from a dropdown list

SOLVED
salley
Frequent Contributor

how to click on a checkbox from a dropdown list

i'm trying to check an item from a dropdown table list. i can find the item but unable to click because i need to scroll down to view the checkbox. my code works if the item is visible. i'm just not sure how do i use the logic to scroll down if expected item is available ,any help or suggestion will be highly appreciated. 

 

Screen shot and code is attached.

thanks

2 REPLIES 2
tristaanogre
Esteemed Contributor

What if, before you call currentObject.Click, you make a call to currentObject.scrollIntoView(true)?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
salley
Frequent Contributor

Thank you So Much, have a nice day

cancel
Showing results for 
Search instead for 
Did you mean: