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

Side by Side Diff: chrome/test/chromedriver/client/webelement.py

Issue 480483002: [chromedriver] Add shadow DOM support to chromedriver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "Fixed nits found in review" Created 6 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/chromedriver/js/call_function.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from command_executor import Command 5 from command_executor import Command
6 6
7 7
8 class WebElement(object): 8 class WebElement(object):
9 """Represents an HTML element.""" 9 """Represents an HTML element."""
10 def __init__(self, chromedriver, id_): 10 def __init__(self, chromedriver, id_):
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 typing = [] 44 typing = []
45 for value in values: 45 for value in values:
46 if isinstance(value, int): 46 if isinstance(value, int):
47 value = str(value) 47 value = str(value)
48 for i in range(len(value)): 48 for i in range(len(value)):
49 typing.append(value[i]) 49 typing.append(value[i])
50 self._Execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing}) 50 self._Execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing})
51 51
52 def GetLocation(self): 52 def GetLocation(self):
53 return self._Execute(Command.GET_ELEMENT_LOCATION) 53 return self._Execute(Command.GET_ELEMENT_LOCATION)
54
55 def IsDisplayed(self):
56 return self._Execute(Command.IS_ELEMENT_DISPLAYED)
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/js/call_function.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698