wynfranc1234
11 years agoContributor
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 the drop down list contains a lot of records, let's say 100 and I want to select item 90 with text of "Sample", the object item cannot be found nor can't be clicked as it is not visible immediately on the screen. As a workaround I have to Key the first letter (S) and then use the key down arrow until it finds item 90 or the "Sample" item. Does anyone has this problem and is there an easier way to Select an item in a dropdown list without knowing the index but just the text?
Details:
advancedlist0 (name of drop down list), Only method Available with Click is "ClickItem".
I'm using TC version 10.0.531.7
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 the drop down list contains a lot of records, let's say 100 and I want to select item 90 with text of "Sample", the object item cannot be found nor can't be clicked as it is not visible immediately on the screen. As a workaround I have to Key the first letter (S) and then use the key down arrow until it finds item 90 or the "Sample" item. Does anyone has this problem and is there an easier way to Select an item in a dropdown list without knowing the index but just the text?
Details:
advancedlist0 (name of drop down list), Only method Available with Click is "ClickItem".
I'm using TC version 10.0.531.7
- 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