Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
Appium-crawl
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
李康
Appium-crawl
Commits
770f50fd
Commit
770f50fd
authored
Oct 18, 2019
by
李康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support non-scrollable filter pane
parent
3f908459
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
product.py
product.py
+7
-5
No files found.
product.py
View file @
770f50fd
...
...
@@ -51,11 +51,11 @@ def getAllFilterTypes(d):
filter
.
click
()
ftype_names
=
[]
filter_pane
=
d
(
scrollable
=
True
)
if
filter_pane
.
count
!=
1
:
print
(
"filter pane is invalid
!"
)
if
filter_pane
.
count
not
in
[
0
,
1
]
:
print
(
"filter pane is invalid
(with count
%
d)!"
%
filter_pane
.
count
)
return
while
True
:
ftypes
=
filter_pane
.
chil
d
(
resourceId
=
"org.c2h4.afei.beauty:id/tv_type"
)
ftypes
=
d
(
resourceId
=
"org.c2h4.afei.beauty:id/tv_type"
)
new_flag
=
False
for
ftype
in
ftypes
:
if
ftype
.
get_text
()
==
"全部品类"
:
...
...
@@ -65,11 +65,13 @@ def getAllFilterTypes(d):
else
:
new_flag
=
True
ftype_names
.
append
(
ftype
.
get_text
())
if
new_flag
:
if
new_flag
and
filter_pane
.
count
:
filter_pane
.
scroll
.
vert
(
steps
=
filter_scroll_steps
)
else
:
break
filter_pane
.
scroll
.
vert
.
backward
()
if
filter_pane
.
count
:
filter_pane
.
scroll
.
vert
.
backward
()
return
ftype_names
def
filterProduct
(
d
,
ftype_name
):
...
...
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