A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/2e059e0314604669fabc899cbad76d9a41d30bcb below:

minor types, avoid import names for variables, simplify int or … · SeleniumHQ/selenium@2e059e0 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+8

-7

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+8

-7

lines changed Original file line number Diff line number Diff line change

@@ -136,15 +136,16 @@ def is_url_connectable(port: Union[int, str]) -> bool:

136 136 137 137

def keys_to_typing(value: Iterable[AnyKey]) -> List[str]:

138 138

"""Processes the values that will be typed in the element."""

139 -

typing: List[str] = []

139 +

_typing: List[str] = []

140 140

for val in value:

141 141

if isinstance(val, Keys):

142 -

typing.append(val)

143 -

elif isinstance(val, int) or isinstance(val, float):

142 +

# Todo: Does this even work?

143 +

_typing.append(val)

144 +

elif isinstance(val, (int, float)):

144 145

val = str(val)

145 146

for i in range(len(val)):

146 -

typing.append(val[i])

147 +

_typing.append(val[i])

147 148

else:

148 149

for i in range(len(val)):

149 -

typing.append(val[i])

150 -

return typing

150 +

_typing.append(val[i])

151 +

return _typing

Original file line number Diff line number Diff line change

@@ -443,7 +443,7 @@ def find_elements(self, by=By.ID, value=None) -> list[WebElement]:

443 443

return self._execute(Command.FIND_CHILD_ELEMENTS,

444 444

{"using": by, "value": value})['value']

445 445 446 -

def __hash__(self):

446 +

def __hash__(self) -> int:

447 447

return int(md5_hash(self._id.encode('utf-8')).hexdigest(), 16)

448 448 449 449

def _upload(self, filename):

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4