Skip to content

Commit 7eb7db4

Browse files
fix: update body of find elements endpoint (#21)
* fix: update body for find elements * bump up version
1 parent 4cb9eb6 commit 7eb7db4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

server/lib/src/models/api/find_element.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ class FindElementModel {
88

99
factory FindElementModel.fromJson(Map<String, dynamic> json) =>
1010
FindElementModel(
11-
strategy: json['strategy'] as String,
12-
selector: json['selector'] as String,
11+
strategy: (json['strategy'] ?? json['using']) as String,
12+
selector: (json['selector'] ?? json['value']) as String,
1313
context: json['context'] as String?,
1414
);
1515

1616
Map<String, dynamic> toJson() => <String, dynamic>{
1717
'strategy': strategy,
1818
'selector': selector,
19+
"using": strategy,
20+
"value": selector,
1921
'context': context,
2022
};
2123
}

server/lib/src/runner.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:package_info_plus/package_info_plus.dart';
1111
const MAX_TEST_DURATION_SECS = 24 * 60 * 60;
1212
// Need a better way to fetch this for automated release, this needs to be updated along with version bump
1313
// Can stay for now as it is not a breaking change
14-
const serverVersion = '0.0.19';
14+
const serverVersion = '0.0.20';
1515

1616
void initializeTest({Widget? app, Function? callback}) async {
1717
IntegrationTestWidgetsFlutterBinding binding =

server/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appium_flutter_server
22
description: "Appium Flutter server using Integration Test package for testing Flutter apps with Appium"
3-
version: 0.0.19
3+
version: 0.0.20
44
homepage: "https://github.com/AppiumTestDistribution/appium-flutter-server"
55

66
environment:

0 commit comments

Comments
 (0)