Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: pkg/webdriver/lib/webdriver.dart

Issue 16758009: Fixing findElementFromId methods (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/webdriver/lib/webdriver.dart
===================================================================
--- pkg/webdriver/lib/webdriver.dart (revision 23884)
+++ pkg/webdriver/lib/webdriver.dart (working copy)
@@ -882,9 +882,9 @@
* Potential Errors: NoSuchWindow, XPathLookupError.
*/
Future<String>
- findElementFromId(String id, String strategy, String searchValue) {
- _post('element/$id/element', { 'using': strategy, 'value' : searchValue });
- }
+ findElementFromId(String id, String strategy, String searchValue) =>
+ _post('element/$id/element',
+ { 'using': strategy, 'value' : searchValue });
/**
* Search for multiple elements on the page, starting from the element with
@@ -897,8 +897,7 @@
Future<List<String>>
findElementsFromId(String id, String strategy, String searchValue) =>
_post('element/$id/elements',
- params: { 'using': strategy, 'value' : searchValue });
-
+ { 'using': strategy, 'value' : searchValue });
/**
* Click on an element specified by [id].
*
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698