Skip to content

Commit b4d78da

Browse files
committed
format.sh
1 parent 7fdb3be commit b4d78da

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -385,18 +385,18 @@ def execute_cdp_cmd(self, cmd: str, cmd_args: dict):
385385
cmd : str,
386386
- Command name
387387
cmd_args : dict
388-
- Command args
388+
- Command args
389389
- Empty dict {} if there is no command args
390390
391391
Returns:
392392
--------
393393
A dict, empty dict {} if there is no result to return.
394394
- To getResponseBody: {'base64Encoded': False, 'body': 'response body string'}
395-
395+
396396
Example:
397397
--------
398398
>>> driver.execute_cdp_cmd('Network.getResponseBody', {'requestId': requestId})
399-
399+
400400
"""
401401
return self.execute("executeCdpCommand", {"cmd": cmd, "params": cmd_args})["value"]
402402

@@ -799,14 +799,14 @@ def set_page_load_timeout(self, time_to_wait: float) -> None:
799799
"""Set the amount of time to wait for a page load to complete before
800800
throwing an error.
801801
802-
Parameters:
803-
---------
804-
time_to_wait : float
805-
- The amount of time to wait (in seconds)
802+
Parameters:
803+
---------
804+
time_to_wait : float
805+
- The amount of time to wait (in seconds)
806806
807-
Example:
808-
--------
809-
>>> driver.set_page_load_timeout(30)
807+
Example:
808+
--------
809+
>>> driver.set_page_load_timeout(30)
810810
"""
811811
try:
812812
self.execute(Command.SET_TIMEOUTS, {"pageLoad": int(float(time_to_wait) * 1000)})
@@ -1005,7 +1005,7 @@ def set_window_size(self, width, height, windowHandle: str = "current") -> None:
10051005
----------
10061006
width : int
10071007
- the width in pixels to set the window to
1008-
height : int
1008+
height : int
10091009
- the height in pixels to set the window to
10101010
10111011
Example:

scripts/format.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ WORKSPACE_ROOT="$(bazel info workspace 2>/dev/null)"
1010

1111
GOOGLE_JAVA_FORMAT="$(bazel run --run_under=echo //scripts:google-java-format)"
1212

13-
section "Buildifier"
14-
echo " buildifier" >&2
15-
bazel run //:buildifier
16-
17-
section "Java"
18-
echo " google-java-format" >&2
19-
find "$PWD/java" -type f -name '*.java' | xargs "$GOOGLE_JAVA_FORMAT" --replace
20-
21-
section "Javascript"
22-
echo " javascript/node/selenium-webdriver - prettier" >&2
23-
NODE_WEBDRIVER="${WORKSPACE_ROOT}/javascript/node/selenium-webdriver"
24-
bazel run //javascript:prettier -- "${NODE_WEBDRIVER}" --write "${NODE_WEBDRIVER}/.prettierrc"
25-
26-
section "Ruby"
27-
echo " rubocop" >&2
28-
bazel run //rb:lint
29-
30-
section "Rust"
31-
echo " rustfmt" >&2
32-
bazel run @rules_rust//:rustfmt
13+
# section "Buildifier"
14+
# echo " buildifier" >&2
15+
# bazel run //:buildifier
16+
17+
# section "Java"
18+
# echo " google-java-format" >&2
19+
# find "$PWD/java" -type f -name '*.java' | xargs "$GOOGLE_JAVA_FORMAT" --replace
20+
21+
# section "Javascript"
22+
# echo " javascript/node/selenium-webdriver - prettier" >&2
23+
# NODE_WEBDRIVER="${WORKSPACE_ROOT}/javascript/node/selenium-webdriver"
24+
# bazel run //javascript:prettier -- "${NODE_WEBDRIVER}" --write "${NODE_WEBDRIVER}/.prettierrc"
25+
26+
# section "Ruby"
27+
# echo " rubocop" >&2
28+
# bazel run //rb:lint
29+
30+
# section "Rust"
31+
# echo " rustfmt" >&2
32+
# bazel run @rules_rust//:rustfmt
3333

3434
# TODO: use bazel target when rules_python supports formatting
3535
section "Python"

0 commit comments

Comments
 (0)