@@ -30,7 +30,7 @@ void main() {
3030 ) async {
3131 if (! Platform .isIOS) {
3232 // Be sure location is enabled.
33- await $.native .enableLocation ();
33+ await $.platformAutomator.android .enableLocation ();
3434 }
3535
3636 // Grant the location permission.
@@ -59,9 +59,9 @@ void main() {
5959
6060 // Tap ok.
6161 if (Platform .isAndroid) {
62- await $.native .tap (Selector (text: "Got It" ));
62+ await $.platformAutomator .tap (Selector (text: "Got It" ));
6363 } else if (Platform .isIOS) {
64- await $.native .tap (Selector (text: "OK" ));
64+ await $.platformAutomator .tap (Selector (text: "OK" ));
6565 } else {
6666 fail ('Unsupported platform: ${Platform .operatingSystem }' );
6767 }
@@ -112,9 +112,9 @@ void main() {
112112
113113 // Accept driver awareness disclaimer.
114114 if (Platform .isAndroid) {
115- await $.native .tap (Selector (text: "Got It" ));
115+ await $.platformAutomator .tap (Selector (text: "Got It" ));
116116 } else if (Platform .isIOS) {
117- await $.native .tap (Selector (text: "OK" ));
117+ await $.platformAutomator .tap (Selector (text: "OK" ));
118118 } else {
119119 fail ('Unsupported platform: ${Platform .operatingSystem }' );
120120 }
@@ -152,7 +152,7 @@ void main() {
152152 ) async {
153153 if (! Platform .isIOS) {
154154 // Be sure location is enabled.
155- await $.native .enableLocation ();
155+ await $.platformAutomator.android .enableLocation ();
156156 }
157157
158158 // Grant the location permission.
@@ -188,9 +188,9 @@ void main() {
188188
189189 // Tap ok.
190190 if (Platform .isAndroid) {
191- await $.native .tap (Selector (text: "Got It" ));
191+ await $.platformAutomator .tap (Selector (text: "Got It" ));
192192 } else if (Platform .isIOS) {
193- await $.native .tap (Selector (text: "OK" ));
193+ await $.platformAutomator .tap (Selector (text: "OK" ));
194194 } else {
195195 fail ('Unsupported platform: ${Platform .operatingSystem }' );
196196 }
0 commit comments