MarketSquare/SwingLibrary

Cannot click on element

vasmos opened this issue · 2 comments

I cannot click on element which looks like calendar and has clickable sections for times and days, when I do list components in context, whole calendar section is as deep as it goes so I cannot specify the cell to click on at that panel.
How can I resolve this? Is there a way to simulate a click on a JComponent subclass at a specific coordinate?
image

Hi,

There is a way to click on a component using Click On Component keyword. And of course it is possible to click a subclass of JComponent (SwingLibrary allows you different operations on Slider, Box, Table, Spinner, etc). The problem is that SwingLibrary does not offer functionality such that you can obtain coordinates of JComponent or one of its subclasses.

If your calendar is implemented as a JTable you can use keywords like Click On Table Cell or Select Table Cell which will provide some kind of 'area delimitation' .

BR,
Andrei

Closing due to inactivity.