Skip to content

Commit 9b138d6

Browse files
aguspeKazuCocoa
andauthored
feat: Take down steep issues from 522 to 104 (#571)
* Take down steep issues from 522 to 427 * Small type update done * Take down steep issues from 522 to 304 * Take down steep issues from 522 to 286 * Take down steep issues from 522 to 268 * Take down steep issues from 522 to 198 * Take down steep issues from 522 to 176 * Take down steep issues from 522 to 168 * Take down steep issues from 522 to 165 * take down to 104 problems to 30 files * Reduce issues to 96 * Reduce issues to 95 * Reduce errors from 105 to 99 * Uncomment and update unit test workflow * Reformat unittest.yml indentation * Update Ruby versions in CI workflow * Fix indentation for test-win job in workflow --------- Co-authored-by: Kazuaki Matsuo <[email protected]>
1 parent e75ca47 commit 9b138d6

File tree

94 files changed

+2099
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2099
-14
lines changed

lib/appium_lib_core/common/device/app_management.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def background_app(duration = 0)
2929

3030
def install_app(path, options = {})
3131
args = { appPath: path }
32-
args[:options] = options unless options.empty?
32+
args[:options] = options unless options&.empty?
3333

3434
execute :install_app, {}, args
3535
end

sig/gems/em.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module EM
2+
def stop: () -> untyped
3+
4+
def run: () -> untyped
5+
end

sig/gems/faye.rbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module Faye
2+
module WebSocket
3+
class Client
4+
def initialize: (String, String, Hash[Symbol, untyped]) -> void
5+
def close: () -> void
6+
def send: (String) -> void
7+
def on: (String, Proc) -> void
8+
end
9+
end
10+
end

sig/gems/selenium/atoms.rbs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module Selenium
2+
module WebDriver
3+
module Atoms
4+
include _Bridge
5+
include _ExecuteScript
6+
7+
def atom_script: (Symbol) -> String
8+
9+
private
10+
11+
def read_atom: (Symbol function) -> String
12+
13+
def execute_atom: (Symbol function_name, [Element | String | Symbol] arguments) -> [Element | Integer | Float | bool | nil | String | Array[untyped]]
14+
end
15+
end
16+
end
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class BrowsingContext
5+
@bidi: untyped
6+
7+
@id: untyped
8+
9+
attr_accessor id: untyped
10+
11+
READINESS_STATE: Hash[Symbol, String]
12+
13+
def initialize: (driver: untyped, ?browsing_context_id: untyped?, ?type: untyped?, ?reference_context: untyped?) -> void
14+
15+
def navigate: (url: untyped, ?readiness_state: untyped?) -> untyped
16+
17+
def get_tree: (?max_depth: untyped?) -> untyped
18+
19+
def close: () -> untyped
20+
21+
private
22+
23+
def create: (untyped type, untyped reference_context) -> untyped
24+
end
25+
end
26+
end
27+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class BrowsingContextInfo
5+
@id: untyped
6+
7+
@url: untyped
8+
9+
@children: untyped
10+
11+
@parent_browsing_context: untyped
12+
13+
attr_accessor id: untyped
14+
15+
attr_accessor url: untyped
16+
17+
attr_accessor children: untyped
18+
19+
attr_accessor parent_browsing_context: untyped
20+
21+
def initialize: (id: untyped, url: untyped, children: untyped, parent_context: untyped) -> void
22+
end
23+
end
24+
end
25+
end
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class LogInspector
5+
@bidi: untyped
6+
7+
EVENTS: Hash[Symbol, String]
8+
9+
LOG_LEVEL: Hash[Symbol, String]
10+
11+
def initialize: (untyped driver, ?untyped? browsing_context_ids) -> void
12+
13+
def on_console_entry: (?untyped? filter_by) { () -> untyped } -> untyped
14+
15+
def on_javascript_log: (?untyped? filter_by) { () -> untyped } -> untyped
16+
17+
def on_javascript_exception: () { () -> untyped } -> untyped
18+
19+
def on_log: (?untyped? filter_by) { (untyped) -> untyped } -> untyped?
20+
21+
private
22+
23+
def on: (untyped event) { () -> untyped } -> untyped
24+
25+
def check_valid_filter: (untyped filter_by) -> (nil | untyped)
26+
27+
def console_log_events: (untyped params, untyped filter_by) { (untyped) -> untyped } -> untyped?
28+
29+
def javascript_log_events: (untyped params, untyped filter_by) { (untyped) -> untyped } -> untyped?
30+
end
31+
end
32+
end
33+
end
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class NavigateResult
5+
@url: untyped
6+
7+
@navigation_id: untyped
8+
9+
attr_accessor url: untyped
10+
11+
attr_accessor navigation_id: untyped
12+
13+
def initialize: (url: untyped, navigation_id: untyped) -> void
14+
end
15+
end
16+
end
17+
end

sig/gems/selenium/bidi/session.rbs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module Selenium
2+
module WebDriver
3+
class BiDi
4+
class Session
5+
@bidi: untyped
6+
7+
Status: untyped
8+
9+
def initialize: (untyped bidi) -> void
10+
11+
def status: () -> untyped
12+
13+
def subscribe: (untyped events, ?untyped? browsing_contexts) -> untyped
14+
15+
def unsubscribe: (untyped events, ?untyped? browsing_contexts) -> untyped
16+
end
17+
end
18+
end
19+
end

0 commit comments

Comments
 (0)