Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
RatelExtension
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ratel
RatelExtension
Commits
4732c15a
Commit
4732c15a
authored
Feb 13, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
15a6e4a3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
0 deletions
+43
-0
SuperAppium.java
...m/virjar/ratel/api/extension/superappium/SuperAppium.java
+1
-0
ViewImage.java
...com/virjar/ratel/api/extension/superappium/ViewImage.java
+18
-0
ValueGetters.java
.../ratel/api/extension/superappium/xmodel/ValueGetters.java
+2
-0
ShownValueGetter.java
...i/extension/superappium/xmodel/view/ShownValueGetter.java
+22
-0
No files found.
src/main/java/com/virjar/ratel/api/extension/superappium/SuperAppium.java
View file @
4732c15a
...
@@ -18,6 +18,7 @@ public class SuperAppium {
...
@@ -18,6 +18,7 @@ public class SuperAppium {
public
static
final
String
index
=
"index"
;
public
static
final
String
index
=
"index"
;
public
static
final
String
hash
=
"hash"
;
public
static
final
String
hash
=
"hash"
;
public
static
final
String
visible
=
"visible"
;
public
static
final
String
visible
=
"visible"
;
public
static
final
String
shown
=
"shown"
;
public
static
String
TAG
=
"SuperAppium"
;
public
static
String
TAG
=
"SuperAppium"
;
}
}
src/main/java/com/virjar/ratel/api/extension/superappium/ViewImage.java
View file @
4732c15a
...
@@ -76,6 +76,24 @@ public class ViewImage {
...
@@ -76,6 +76,24 @@ public class ViewImage {
return
(
T
)
valueGetter
.
get
();
return
(
T
)
valueGetter
.
get
();
}
}
private
int
[]
location
=
null
;
public
int
[]
locationOnScreen
()
{
if
(
location
!=
null
)
{
return
location
;
}
location
=
new
int
[
2
];
originView
.
getLocationOnScreen
(
location
);
return
location
;
}
public
int
X
()
{
return
locationOnScreen
()[
0
];
}
public
int
Y
()
{
return
locationOnScreen
()[
1
];
}
public
View
getOriginView
()
{
public
View
getOriginView
()
{
return
originView
;
return
originView
;
...
...
src/main/java/com/virjar/ratel/api/extension/superappium/xmodel/ValueGetters.java
View file @
4732c15a
...
@@ -18,6 +18,7 @@ import com.virjar.ratel.api.extension.superappium.xmodel.view.IndexGetter;
...
@@ -18,6 +18,7 @@ import com.virjar.ratel.api.extension.superappium.xmodel.view.IndexGetter;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.LongClickableValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.LongClickableValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.PackageNameValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.PackageNameValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.SelectedValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.SelectedValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.ShownValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.VisibleValueGetter
;
import
com.virjar.ratel.api.extension.superappium.xmodel.view.VisibleValueGetter
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -51,6 +52,7 @@ public class ValueGetters {
...
@@ -51,6 +52,7 @@ public class ValueGetters {
valueGetters
.
add
(
new
IdGetter
());
valueGetters
.
add
(
new
IdGetter
());
valueGetters
.
add
(
new
IndexGetter
());
valueGetters
.
add
(
new
IndexGetter
());
valueGetters
.
add
(
new
HashCodeGetter
());
valueGetters
.
add
(
new
HashCodeGetter
());
valueGetters
.
add
(
new
ShownValueGetter
());
}
}
private
static
void
registerBasic
()
{
private
static
void
registerBasic
()
{
...
...
src/main/java/com/virjar/ratel/api/extension/superappium/xmodel/view/ShownValueGetter.java
0 → 100644
View file @
4732c15a
package
com
.
virjar
.
ratel
.
api
.
extension
.
superappium
.
xmodel
.
view
;
import
com.virjar.ratel.api.extension.superappium.SuperAppium
;
import
com.virjar.ratel.api.extension.superappium.ViewImage
;
import
com.virjar.ratel.api.extension.superappium.xmodel.ValueGetter
;
public
class
ShownValueGetter
implements
ValueGetter
<
Boolean
>
{
@Override
public
Boolean
get
(
ViewImage
viewImage
)
{
return
viewImage
.
getOriginView
().
isShown
();
}
@Override
public
boolean
support
(
Class
type
)
{
return
true
;
}
@Override
public
String
attr
()
{
return
SuperAppium
.
shown
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment