PDA

View Full Version : Accessing the 'expand panel button' from a collapsed panel.



rasto1968
4 Mar 2011, 6:58 AM
Hello all,

We are using Selenium to test our product and we are having a bit of a problem with collapsible panels. We can set an Id OK on the main panel, but when it is collapsed the whole panel is replaced with an automatically generated panel which contains the expand button. There doesn't appear to be any way to specify the Id to be used for the expand button, hence the Selenium test has no way of referencing it to re-expand the panel.

We are investigating the idea of selecting using class instead of Id, but it would obviously be much easier if we could just set a fixed Id for the button.

Any ideas ?

Rob Stone