cancel
Showing results for 
Search instead for 
Did you mean: 

how to click on a checkbox from a dropdown list

SOLVED
Highlighted
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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

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

View solution in original post

2 REPLIES 2
Community Hero

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

View solution in original post

Highlighted
Frequent Contributor

Thank you So Much, have a nice day

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors