Generating test-ids for Combo dropdown list elements [message #1832359] |
Thu, 17 September 2020 02:43  |
Eclipse User |
|
|
|
I need to update RAP from version 2.2 to 3.4 to fix some known vulnerabilities.
We have a suite of ~200 automatic tests using selenium that need a test-id attached to the widgets.
In 2.2 we used
widget.setData(WidgetUtil.CUSTOM_WIDGET_ID, testId);
and we used an extension in the plugin.xml to listen to widget creation to add test-ids for elements like combo drop down list items, that otherwise cannot be reached.
<extension
point="org.eclipse.rap.ui.phaselistener">
<listener
class="com.ricoh.webapplication.util.UITestPhaseListener">
</listener>
</extension>
public void beforePhase(PhaseEvent event) {
WidgetTreeVisitor visitor = createWidgetTreeVisitor();
for (Shell shell : getAllShells()) {
WidgetTreeVisitor.accept(shell, visitor);
}
}
I am sure that this code was suggested somewhere in the internet.
Unfortunately rap 3.4 no longer supports the phaselistener interface.
Is there a way to get hold of the widgets I need to add the test-ids to?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03463 seconds