@@ -56,10 +56,11 @@ public void test_create_WdRemoteClickAction() {
5656 Assert .isTrue (remoteClickAction .get (Tags .OriginWidget ).equals (childWdWidget ));
5757 Assert .isTrue (remoteClickAction .get (Tags .Role ).equals (WdActionRoles .RemoteClick ));
5858 Assert .isTrue (remoteClickAction .get (Tags .Desc ).equals ("Remote click " + "Widget Description" ));
59- Assert .isTrue (remoteClickAction .toShortString ().equals ("Remote click " + childWdElement .name ));
60- Assert .isTrue (remoteClickAction .toParametersString ().equals ("Remote click " + childWdElement .name ));
61- Assert .isTrue (remoteClickAction .toString (new Role [0 ]).equals ("Remote click " + childWdElement .name ));
62- Assert .isTrue (remoteClickAction .toString ().equals ("Remote click " + childWdElement .name ));
59+ String elementDescription = childWdElement .getElementDescription ();
60+ Assert .isTrue (remoteClickAction .toShortString ().equals ("Remote click " + elementDescription ));
61+ Assert .isTrue (remoteClickAction .toParametersString ().equals ("Remote click " + elementDescription ));
62+ Assert .isTrue (remoteClickAction .toString (new Role [0 ]).equals ("Remote click " + elementDescription ));
63+ Assert .isTrue (remoteClickAction .toString ().equals ("Remote click " + elementDescription ));
6364
6465 // Verify that run the action invokes the remoteWebElement click event
6566 remoteClickAction .run (Mockito .mock (SUT .class ), Mockito .mock (State .class ), 1 );
@@ -80,10 +81,11 @@ public void test_create_WdRemoteScrollClickAction() {
8081 Assert .isTrue (remoteScrollClickAction .get (Tags .OriginWidget ).equals (childWdWidget ));
8182 Assert .isTrue (remoteScrollClickAction .get (Tags .Role ).equals (WdActionRoles .RemoteScrollClick ));
8283 Assert .isTrue (remoteScrollClickAction .get (Tags .Desc ).equals ("Remote scroll and click " + "Widget Description" ));
83- Assert .isTrue (remoteScrollClickAction .toShortString ().equals ("Remote scroll and click " + childWdElement .name ));
84- Assert .isTrue (remoteScrollClickAction .toParametersString ().equals ("Remote scroll and click " + childWdElement .name ));
85- Assert .isTrue (remoteScrollClickAction .toString (new Role [0 ]).equals ("Remote scroll and click " + childWdElement .name ));
86- Assert .isTrue (remoteScrollClickAction .toString ().equals ("Remote scroll and click " + childWdElement .name ));
84+ String elementDescription = childWdElement .getElementDescription ();
85+ Assert .isTrue (remoteScrollClickAction .toShortString ().equals ("Remote scroll and click " + elementDescription ));
86+ Assert .isTrue (remoteScrollClickAction .toParametersString ().equals ("Remote scroll and click " + elementDescription ));
87+ Assert .isTrue (remoteScrollClickAction .toString (new Role [0 ]).equals ("Remote scroll and click " + elementDescription ));
88+ Assert .isTrue (remoteScrollClickAction .toString ().equals ("Remote scroll and click " + elementDescription ));
8789
8890 // Verify that run the action invokes the remoteWebElement click event
8991 remoteScrollClickAction .run (Mockito .mock (SUT .class ), Mockito .mock (State .class ), 1 );
@@ -105,10 +107,11 @@ public void test_create_WdRemoteTypeAction() {
105107 Assert .isTrue (remoteTypeAction .get (Tags .OriginWidget ).equals (childWdWidget ));
106108 Assert .isTrue (remoteTypeAction .get (Tags .Role ).equals (WdActionRoles .RemoteType ));
107109 Assert .isTrue (remoteTypeAction .get (Tags .Desc ).equals ("Remote type " + typedText + " to widget " + "Widget Description" ));
108- Assert .isTrue (remoteTypeAction .toShortString ().equals ("Remote type " + typedText + " " + childWdElement .name ));
109- Assert .isTrue (remoteTypeAction .toParametersString ().equals ("Remote type " + typedText + " " + childWdElement .name ));
110- Assert .isTrue (remoteTypeAction .toString (new Role [0 ]).equals ("Remote type " + typedText + " " + childWdElement .name ));
111- Assert .isTrue (remoteTypeAction .toString ().equals ("Remote type " + typedText + " " + childWdElement .name ));
110+ String elementDescription = childWdElement .getElementDescription ();
111+ Assert .isTrue (remoteTypeAction .toShortString ().equals ("Remote type " + typedText + " " + elementDescription ));
112+ Assert .isTrue (remoteTypeAction .toParametersString ().equals ("Remote type " + typedText + " " + elementDescription ));
113+ Assert .isTrue (remoteTypeAction .toString (new Role [0 ]).equals ("Remote type " + typedText + " " + elementDescription ));
114+ Assert .isTrue (remoteTypeAction .toString ().equals ("Remote type " + typedText + " " + elementDescription ));
112115
113116 // Verify that run the action invokes the remoteWebElement sendKeys event
114117 remoteTypeAction .run (Mockito .mock (SUT .class ), Mockito .mock (State .class ), 1 );
@@ -130,10 +133,11 @@ public void test_create_WdRemoteScrollTypeAction() {
130133 Assert .isTrue (remoteScrollTypeAction .get (Tags .OriginWidget ).equals (childWdWidget ));
131134 Assert .isTrue (remoteScrollTypeAction .get (Tags .Role ).equals (WdActionRoles .RemoteScrollType ));
132135 Assert .isTrue (remoteScrollTypeAction .get (Tags .Desc ).equals ("Remote scroll and type " + typedText + " to widget " + "Widget Description" ));
133- Assert .isTrue (remoteScrollTypeAction .toShortString ().equals ("Remote scroll and type " + typedText + " " + childWdElement .name ));
134- Assert .isTrue (remoteScrollTypeAction .toParametersString ().equals ("Remote scroll and type " + typedText + " " + childWdElement .name ));
135- Assert .isTrue (remoteScrollTypeAction .toString (new Role [0 ]).equals ("Remote scroll and type " + typedText + " " + childWdElement .name ));
136- Assert .isTrue (remoteScrollTypeAction .toString ().equals ("Remote scroll and type " + typedText + " " + childWdElement .name ));
136+ String elementDescription = childWdElement .getElementDescription ();
137+ Assert .isTrue (remoteScrollTypeAction .toShortString ().equals ("Remote scroll and type " + typedText + " " + elementDescription ));
138+ Assert .isTrue (remoteScrollTypeAction .toParametersString ().equals ("Remote scroll and type " + typedText + " " + elementDescription ));
139+ Assert .isTrue (remoteScrollTypeAction .toString (new Role [0 ]).equals ("Remote scroll and type " + typedText + " " + elementDescription ));
140+ Assert .isTrue (remoteScrollTypeAction .toString ().equals ("Remote scroll and type " + typedText + " " + elementDescription ));
137141
138142 // Verify that run the action invokes the remoteWebElement sendKeys event
139143 remoteScrollTypeAction .run (Mockito .mock (SUT .class ), Mockito .mock (State .class ), 1 );
0 commit comments