uia 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -1
- data/ext/UiaDll/UiaDll/TableMethods.cpp +10 -0
- data/lib/uia/library.rb +1 -0
- data/lib/uia/patterns/table.rb +4 -0
- data/lib/uia/version.rb +1 -1
- data/spec/uia/patterns/table_spec.rb +4 -0
- metadata +4 -4
data/ChangeLog
CHANGED
@@ -24,4 +24,14 @@ extern "C" {
|
|
24
24
|
return 0;
|
25
25
|
}
|
26
26
|
}
|
27
|
+
|
28
|
+
__declspec(dllexport) ElementInformationPtr Table_Row(ElementInformationPtr element, const int index, char* errorInfo, const int errorInfoLength) {
|
29
|
+
try {
|
30
|
+
auto table = ElementFrom(element);
|
31
|
+
return ElementInformation::From(table->Find(TreeScope::Children, gcnew PropertyCondition(AutomationElement::ControlTypeProperty, ControlType::DataItem))[index]);
|
32
|
+
} catch(Exception^ e) {
|
33
|
+
StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
|
34
|
+
return NULL;
|
35
|
+
}
|
36
|
+
}
|
27
37
|
}
|
data/lib/uia/library.rb
CHANGED
@@ -133,6 +133,7 @@ module Uia
|
|
133
133
|
|
134
134
|
# TablePattern methods
|
135
135
|
attach_throwable_function :table_info, :Table_Information, [:pointer], TableInformation.by_ref
|
136
|
+
attach_throwable_function :table_row, :Table_Row, [:pointer, :int], ManagedElementStruct.by_ref, &element_or_nil
|
136
137
|
elements_from :table_headers, :Table_Headers, [:pointer]
|
137
138
|
|
138
139
|
# TableItemPattern methods
|
data/lib/uia/patterns/table.rb
CHANGED
data/lib/uia/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -257,7 +257,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
257
257
|
version: '0'
|
258
258
|
segments:
|
259
259
|
- 0
|
260
|
-
hash:
|
260
|
+
hash: 471307667
|
261
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
262
|
none: false
|
263
263
|
requirements:
|
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
266
|
version: '0'
|
267
267
|
segments:
|
268
268
|
- 0
|
269
|
-
hash:
|
269
|
+
hash: 471307667
|
270
270
|
requirements: []
|
271
271
|
rubyforge_project:
|
272
272
|
rubygems_version: 1.8.28
|