Forum Discussion

salley's avatar
salley
Frequent Contributor
6 years ago
Solved

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

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

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

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

    • salley's avatar
      salley
      Frequent Contributor

      Thank you So Much, have a nice day