qrpa 1.0.53__py3-none-any.whl → 1.0.54__py3-none-any.whl

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.

Potentially problematic release.


This version of qrpa might be problematic. Click here for more details.

qrpa/shein_lib.py CHANGED
@@ -63,6 +63,20 @@ class SheinLib:
63
63
  time.sleep(5)
64
64
  wait_count += 1
65
65
 
66
+ if web_page.locator('//div[contains(text(),"同意签署协议")]').count() > 0:
67
+ while web_page.locator('//div[contains(text(),"同意签署协议")]').count() == 0:
68
+ log('等待协议内容出现')
69
+ web_page.wait_for_timeout(1000)
70
+
71
+ if web_page.locator('//div[contains(text(),"同意签署协议")]').count() > 0:
72
+ log('检测到同意签署协议')
73
+ web_page.wait_for_timeout(1000)
74
+ log('点击同意复选框')
75
+ web_page.locator('//i[@class="so-checkinput-indicator so-checkinput-checkbox"]').click()
76
+ web_page.wait_for_timeout(1000)
77
+ log('点击同意按钮')
78
+ web_page.locator('//button[span[text()="同意"]]').click()
79
+
66
80
  if web_page.locator('//input[@name="username"]').is_visible():
67
81
  log("用户名输入框可见 等待5秒点击'登录'按钮", self.store_username, self.store_name)
68
82
  web_page.wait_for_timeout(5000)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.53
3
+ Version: 1.0.54
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -11,7 +11,7 @@ qrpa/fun_web.py,sha256=F6cxwwOxB8twg2XK73oAvKla0FqpwDYJiM37CWmFwXo,6322
11
11
  qrpa/fun_win.py,sha256=-LnTeocdTt72NVH6VgLdpAT9_C5oV9okeudXG6CftMA,8034
12
12
  qrpa/shein_daily_report_model.py,sha256=H8oZmIN5Pyqe306W1_xuz87lOqLQ_LI5RjXbaxDkIzE,12589
13
13
  qrpa/shein_excel.py,sha256=7dWDKP5JlD_2sb3Uv3JK_VJvppGwidsP3UAyPA89Ga8,115472
14
- qrpa/shein_lib.py,sha256=0NYJ5UnbMbg0dg2Tffd0y7JVcpxxlTqCuFuK_VfskE8,108774
14
+ qrpa/shein_lib.py,sha256=0Yx9rFj1BwZe-pms1CV5SFPRs0u8gFrfi3laemNgNrU,109692
15
15
  qrpa/shein_mysql.py,sha256=MGPJsz13evsLygZWhmitpPzUswiTKZ91VFvr8KA0M40,750
16
16
  qrpa/shein_sqlite.py,sha256=ZQwD0Gz81q9WY7tY2HMEYvSF9r3N_G_Aur3bYfST9WY,5707
17
17
  qrpa/shein_ziniao.py,sha256=kAOirjawPf-VxBxHFNpdDHCN2zL-O1U-2xybpmt34Xs,18692
@@ -23,7 +23,7 @@ qrpa/time_utils_example.py,sha256=shHOXKKF3QSzb0SHsNc34M61wEkkLuM30U9X1THKNS8,80
23
23
  qrpa/wxwork.py,sha256=gIytG19DZ5g7Tsl0-W3EbjfSnpIqZw-ua24gcB78YEg,11264
24
24
  qrpa/mysql_module/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  qrpa/mysql_module/shein_return_order_model.py,sha256=zvEQBVODpxQXWveUAF5z-be-DVI3WlF8UgvmwCTWP7o,26237
26
- qrpa-1.0.53.dist-info/METADATA,sha256=YxiXzx5qK-76GGRhbt8AIi9lctAbYhzGfPKkSJyNF1g,231
27
- qrpa-1.0.53.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- qrpa-1.0.53.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
- qrpa-1.0.53.dist-info/RECORD,,
26
+ qrpa-1.0.54.dist-info/METADATA,sha256=I0C9uc6qfj0ei6vjH6VHmHY1w6tsP2mYsbHhvgoF_wU,231
27
+ qrpa-1.0.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ qrpa-1.0.54.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
+ qrpa-1.0.54.dist-info/RECORD,,
File without changes