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

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: Fix implicit bool conversion warning 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..5d7dda689f0e5a894946f94d200d669b56d25018 100644
--- a/chrome/test/chromedriver/client/webelement.py
+++ b/chrome/test/chromedriver/client/webelement.py
@@ -25,6 +25,9 @@ class WebElement(object):
return self._Execute(
Command.FIND_CHILD_ELEMENTS, {'using': strategy, 'value': target})
+ def GetText(self):
+ return self._Execute(Command.GET_ELEMENT_TEXT)
+
def HoverOver(self):
self._Execute(Command.HOVER_OVER_ELEMENT)
« no previous file with comments | « chrome/test/chromedriver/client/chromedriver.py ('k') | chrome/test/chromedriver/embed_mobile_devices_in_cpp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698