Open HuyNguyen7994 opened 2 years ago
For same field, elements in Cells property have the depth of 0 and no dimensions, while in Select Cells property they have meaningful depth and dimensions. Yet both find_ and getcell method only return elements in Cells. Elements in Select Cells property (currently inaccessible): Elements in Cells property (accessible with both find and get_cell):
We can reach the element with get_selected_element
but this requires the element to be manually selected first
Hi @HuyNguyen7994,
It seems No JAB API can get selected cells in table. you can reference with below functions and check if specific cell is selected or not, then get selected cell
BOOL getAccessibleTableRowSelections(long vmID, AccessibleTable table, jint count, jint *selections);
BOOL getAccessibleTableColumnSelections(long vmID, AccessibleTable table, jint count, jint *selections);
I was able to grab the element by setting visible=True
in get_cell
method
I want to get the elements listed in Select Cells, but JABElement.get_cell method seems to get from Cells, which cannot be interacted with in my case.
Originally posted by @HuyNguyen7994 in https://github.com/gaozhao1989/pyjab/issues/57#issuecomment-1204637058