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

Unified Diff: chrome/test/chromedriver/client/webelement.py

Issue 251933005: [ChromeDriver] Support mobile emulation on desktop Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
Index: chrome/test/chromedriver/client/webelement.py
diff --git a/chrome/test/chromedriver/client/webelement.py b/chrome/test/chromedriver/client/webelement.py
index b3e6a641f5b553151efcddb1e2485deb079e52b3..5be26096768a303fec8376b0b0e948f6ea18661c 100644
--- a/chrome/test/chromedriver/client/webelement.py
+++ b/chrome/test/chromedriver/client/webelement.py
@@ -25,6 +25,10 @@ class WebElement(object):
return self._Execute(
Command.FIND_CHILD_ELEMENTS, {'using': strategy, 'value': target})
+ def GetText(self):
+ return self._Execute(
+ Command.GET_ELEMENT_TEXT)
stgao 2014/05/14 05:10:14 make it one line instead of two?
sam.rawlins 2014/05/16 21:09:38 Done.
+
def HoverOver(self):
self._Execute(Command.HOVER_OVER_ELEMENT)

Powered by Google App Engine
This is Rietveld 408576698