testa_appium_driver 0.1.33 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 593c2444720244c32d1a237a40ed80b3f864595bd5f1f5a197fbf87790b0b8af
4
- data.tar.gz: 5da6b35f561eb2deae604705957ce8a220f4d5dd940728188d67096c9c6c3a7b
3
+ metadata.gz: '09d419b756a039134b80c36cbc55e428649d85a1053e56f3253a7ab6b7d92180'
4
+ data.tar.gz: 7b6a010c67667be6a51d88d0d0ce17b5b44c96501051383eb8ebc9a0dc3c34d2
5
5
  SHA512:
6
- metadata.gz: 142dbf94253246348e3802542de308034ba5286286824411d5ae5b711147e5201817bac6951c77286c7a52dd6f4c36d408aa474db860189484535b195846ea89
7
- data.tar.gz: 1918230241d2f531bffb5205125dff3cafff25b3d997b219807a1e860ccb34d0ee41082ef4a954c5481101a77885e691364d295d2dee9e580ab730a00ac676a1
6
+ metadata.gz: ce0d991474bc79cd62af1783825c80f896b0bdb9ffce2f9d35d4f78a6fd36f65136bacaadb6fa14577069c2d9532b6c472139271792c7130d205207db348ac3c
7
+ data.tar.gz: 9fd7602e23e312da1ec2bd5927d1988d5bca966a27822683dd1081df39aa752d07f01de80d71f2e1b4cb4bc8a4650afc0cc2e5bb7ccc15d400231cf3cc5df141
@@ -2,12 +2,12 @@ module TestaAppiumDriver
2
2
  module Attributes
3
3
 
4
4
  # noinspection RubyNilAnalysis
5
- def testa_attribute(name, *args)
5
+ def testa_attribute(name, *args, **kwargs)
6
6
  if self.instance_of?(::Selenium::WebDriver::Element) || self.instance_of?(::Appium::Core::Element)
7
7
  @driver = get_driver # does not get correct driver
8
8
  elements = self
9
9
  else
10
- elements = execute(*args)
10
+ elements = execute(*args, **kwargs)
11
11
  raise "Element not found" if elements.nil?
12
12
  end
13
13
 
@@ -27,80 +27,80 @@ module TestaAppiumDriver
27
27
  r
28
28
  end
29
29
 
30
- def text(*args)
31
- testa_attribute("text", *args)
30
+ def text(*args, **kwargs)
31
+ testa_attribute("text", *args, **kwargs)
32
32
  end
33
33
 
34
- def package(*args)
35
- testa_attribute("package", *args)
34
+ def package(*args, **kwargs)
35
+ testa_attribute("package", *args, **kwargs)
36
36
  end
37
37
 
38
- def class_name(*args)
39
- testa_attribute("className", *args)
38
+ def class_name(*args, **kwargs)
39
+ testa_attribute("className", *args, **kwargs)
40
40
  end
41
41
 
42
- def checkable?(*args)
43
- testa_attribute("checkable", *args).to_s == "true"
42
+ def checkable?(*args, **kwargs)
43
+ testa_attribute("checkable", *args, **kwargs).to_s == "true"
44
44
  end
45
45
 
46
- def checked?(*args)
47
- testa_attribute("checked", *args).to_s == "true"
46
+ def checked?(*args, **kwargs)
47
+ testa_attribute("checked", *args, **kwargs).to_s == "true"
48
48
  end
49
49
 
50
- def clickable?(*args)
51
- testa_attribute("clickable", *args).to_s == "true"
50
+ def clickable?(*args, **kwargs)
51
+ testa_attribute("clickable", *args, **kwargs).to_s == "true"
52
52
  end
53
53
 
54
- def desc(*args)
55
- testa_attribute("contentDescription", *args)
54
+ def desc(*args, **kwargs)
55
+ testa_attribute("contentDescription", *args, **kwargs)
56
56
  end
57
57
 
58
- def enabled?(*args)
59
- testa_attribute("enabled", *args).to_s == "true"
58
+ def enabled?(*args, **kwargs)
59
+ testa_attribute("enabled", *args, **kwargs).to_s == "true"
60
60
  end
61
61
 
62
- def focusable?(*args)
63
- testa_attribute("focusable", *args).to_s == "true"
62
+ def focusable?(*args, **kwargs)
63
+ testa_attribute("focusable", *args, **kwargs).to_s == "true"
64
64
  end
65
65
 
66
- def focused?(*args)
67
- testa_attribute("focused", *args).to_s == "true"
66
+ def focused?(*args, **kwargs)
67
+ testa_attribute("focused", *args, **kwargs).to_s == "true"
68
68
  end
69
69
 
70
- def long_clickable?(*args)
71
- testa_attribute("longClickable", *args).to_s == "true"
70
+ def long_clickable?(*args, **kwargs)
71
+ testa_attribute("longClickable", *args, **kwargs).to_s == "true"
72
72
  end
73
73
 
74
- def password?(*args)
75
- testa_attribute("password", *args).to_s == "true"
74
+ def password?(*args, **kwargs)
75
+ testa_attribute("password", *args, **kwargs).to_s == "true"
76
76
  end
77
77
 
78
- def id(*args)
79
- testa_attribute("resourceId", *args)
78
+ def id(*args, **kwargs)
79
+ testa_attribute("resourceId", *args, **kwargs)
80
80
  end
81
81
 
82
- def scrollable?(*args)
83
- testa_attribute("scrollable", *args).to_s == "true"
82
+ def scrollable?(*args, **kwargs)
83
+ testa_attribute("scrollable", *args, **kwargs).to_s == "true"
84
84
  end
85
85
 
86
- def selected?(*args)
87
- testa_attribute("selected", *args).to_s == "true"
86
+ def selected?(*args, **kwargs)
87
+ testa_attribute("selected", *args, **kwargs).to_s == "true"
88
88
  end
89
89
 
90
- def displayed?(*args)
91
- testa_attribute("displayed", *args).to_s == "true"
90
+ def displayed?(*args, **kwargs)
91
+ testa_attribute("displayed", *args, **kwargs).to_s == "true"
92
92
  end
93
93
 
94
- def selection_start(*args)
95
- testa_attribute("selection-start", *args)
94
+ def selection_start(*args, **kwargs)
95
+ testa_attribute("selection-start", *args, **kwargs)
96
96
  end
97
97
 
98
- def selection_end(*args)
99
- testa_attribute("selection-end", *args)
98
+ def selection_end(*args, **kwargs)
99
+ testa_attribute("selection-end", *args, **kwargs)
100
100
  end
101
101
 
102
- def bounds(*args)
103
- testa_attribute("bounds", *args)
102
+ def bounds(*args, **kwargs)
103
+ testa_attribute("bounds", *args, **kwargs)
104
104
  end
105
105
  end
106
106
 
@@ -2,13 +2,12 @@ module TestaAppiumDriver
2
2
  module Attributes
3
3
 
4
4
  #noinspection RubyNilAnalysis
5
- def testa_attribute(name, *args)
6
-
5
+ def testa_attribute(name, *args, **kwargs)
7
6
  if self.instance_of?(::Selenium::WebDriver::Element) || self.instance_of?(::Appium::Core::Element)
8
7
  @driver = get_driver
9
8
  elements = self
10
9
  else
11
- elements = execute(*args)
10
+ elements = execute(*args, **kwargs)
12
11
  end
13
12
 
14
13
 
@@ -23,62 +22,62 @@ module TestaAppiumDriver
23
22
  end
24
23
 
25
24
 
26
- def accessibility_container(*args)
27
- testa_attribute("accessibilityContainer", *args)
25
+ def accessibility_container(*args, **kwargs)
26
+ testa_attribute("accessibilityContainer", *args, **kwargs)
28
27
  end
29
28
 
30
- def accessible?(*args)
31
- testa_attribute("accessible", *args).to_s == "true"
29
+ def accessible?(*args, **kwargs)
30
+ testa_attribute("accessible", *args, **kwargs).to_s == "true"
32
31
  end
33
32
 
34
33
 
35
- def class_name(*args)
36
- testa_attribute("class", *args)
34
+ def class_name(*args, **kwargs)
35
+ testa_attribute("class", *args, **kwargs)
37
36
  end
38
37
 
39
- def enabled?(*args)
40
- testa_attribute("enabled", *args).to_s == "true"
38
+ def enabled?(*args, **kwargs)
39
+ testa_attribute("enabled", *args, **kwargs).to_s == "true"
41
40
  end
42
41
 
43
- def frame(*args)
44
- testa_attribute("frame", *args)
42
+ def frame(*args, **kwargs)
43
+ testa_attribute("frame", *args, **kwargs)
45
44
  end
46
45
 
47
- def index(*args)
48
- index = testa_attribute("index", *args)
46
+ def index(*args, **kwargs)
47
+ index = testa_attribute("index", *args, **kwargs)
49
48
  index = "1" if index == "true"
50
49
  index = "0" if index == "false"
51
50
 
52
51
  index
53
52
  end
54
53
 
55
- def label(*args)
56
- testa_attribute("label", *args)
54
+ def label(*args, **kwargs)
55
+ testa_attribute("label", *args, **kwargs)
57
56
  end
58
57
 
59
- def name(*args)
60
- testa_attribute("name", *args)
58
+ def name(*args, **kwargs)
59
+ testa_attribute("name", *args, **kwargs)
61
60
  end
62
61
 
63
62
 
64
- def rect(*args)
65
- testa_attribute("rect", *args)
63
+ def rect(*args, **kwargs)
64
+ testa_attribute("rect", *args, **kwargs)
66
65
  end
67
66
 
68
- def selected?(*args)
69
- testa_attribute("selected", *args).to_s == "true"
67
+ def selected?(*args, **kwargs)
68
+ testa_attribute("selected", *args, **kwargs).to_s == "true"
70
69
  end
71
70
 
72
- def type(*args)
73
- testa_attribute("type", *args)
71
+ def type(*args, **kwargs)
72
+ testa_attribute("type", *args, **kwargs)
74
73
  end
75
74
 
76
- def value(*args)
77
- testa_attribute("value", *args)
75
+ def value(*args, **kwargs)
76
+ testa_attribute("value", *args, **kwargs)
78
77
  end
79
78
 
80
- def visible?(*args)
81
- testa_attribute("visible", *args).to_s == "true"
79
+ def visible?(*args, **kwargs)
80
+ testa_attribute("visible", *args, **kwargs).to_s == "true"
82
81
  end
83
82
 
84
83
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testa_appium_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.33
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2025-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib_core
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 2.7.6
115
+ version: 3.2.6
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="