Forum Discussion

wynfranc1234's avatar
wynfranc1234
Contributor
12 years ago
Solved

Flex- Cannot click the item that is not visible in the dropdown list

Hi. My system  is using  Java and Flex app(Debug version) and when I click an item in a drop down list that is visible in the screen, TC can click and select the item (using an index). But if t...
  • tpotter's avatar
    12 years ago
    Hmm, so you're saying it's too far off the screen and not yet visible? Do you know the css selectors on that particular item? You could use querySelector if you know that item has a particular id... Would be roughly the same



    page = Sys.Browser("*").Page(whateverurl or just use "*");



    result = page.querySelector("#objectid");

    result.click();



    I'm not sure how the simulation of clicking the object will work if it's not on the page though... Let me know if this helps at all