Skip to content

Commit 1295475

Browse files
committed
add rbs
1 parent 1cf9bf9 commit 1295475

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module Appium
2+
module Core
3+
class Base
4+
class BiDiBridge < ::Appium::Core::Base::Bridge
5+
@bidi: ::Selenium::WebDriver::BiDi
6+
7+
def attach_to: (untyped session_id, untyped platform_name, untyped automation_name) -> untyped
8+
9+
def create_session: (untyped capabilities) -> ::Appium::Core::Base::Capabilities
10+
11+
def get: (string url) -> untyped
12+
13+
def go_back: () -> untyped
14+
15+
def go_forward: () -> untyped
16+
17+
def refresh: () -> untyped
18+
19+
def quit: () -> untyped
20+
21+
def close: () -> untyped
22+
end
23+
end
24+
end
25+
end

sig/lib/appium_lib_core/common/base/bridge.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module Appium
9494
# core = ::Appium::Core.for(caps)
9595
# driver = core.start_driver
9696
#
97-
def create_session: (untyped capabilities) -> untyped
97+
def create_session: (untyped capabilities) -> ::Appium::Core::Base::Capabilities
9898

9999
# Append +appium:+ prefix for Appium following W3C spec
100100
# https://www.w3.org/TR/webdriver/#dfn-validate-capabilities
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
APPIUM_EXTRA_FINDERS: { accessibility_id: "accessibility id", image: "-image", custom: "-custom", uiautomator: "-android uiautomator", viewtag: "-android viewtag", data_matcher: "-android datamatcher", view_matcher: "-android viewmatcher", predicate: "-ios predicate string", class_chain: "-ios class chain" }
1+
module Appium
2+
module Core
3+
class Base
4+
module SearchContext
5+
APPIUM_EXTRA_FINDERS: { Symbol => String }
6+
end
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)