Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动提交订单失败 #157

Open
lovelyyutian opened this issue Dec 23, 2024 · 14 comments
Open

自动提交订单失败 #157

lovelyyutian opened this issue Dec 23, 2024 · 14 comments

Comments

@lovelyyutian
Copy link

`2024-12-23 10:08:08.891 | INFO | huawei:__start_buying:460 - MainProcess:MainThread - 抢购活动最后下单环节,进行第 79 次尝试立即下单
2024-12-23 10:08:10.064 | WARNING | huawei:__do_start_buying:493 - MainProcess:MainThread - 当前尝试下单失败,立即下单按钮不存在或当前不可点击
2024-12-23 10:08:10.064 | INFO | huawei:__check_can_submit_order:589 - MainProcess:MainThread - 检查是否可以进行下单操作
2024-12-23 10:08:10.071 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0
2024-12-23 10:08:10.076 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0
2024-12-23 10:08:10.078 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单
2024-12-23 10:08:10.153 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单
2024-12-23 10:08:11.217 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click:


(Session info: chrome=131.0.6778.205)
Stacktrace:
0 chromedriver 0x0000000100c6f184 cxxbridge1$str$ptr + 3626716
1 chromedriver 0x0000000100c679d4 cxxbridge1$str$ptr + 3596076
2 chromedriver 0x00000001006d4968 cxxbridge1$string$len + 89228
3 chromedriver 0x000000010071e5e4 cxxbridge1$string$len + 391432
4 chromedriver 0x000000010071cc34 cxxbridge1$string$len + 384856
5 chromedriver 0x000000010071ab78 cxxbridge1$string$len + 376476
6 chromedriver 0x0000000100719f90 cxxbridge1$string$len + 373428
7 chromedriver 0x000000010070f474 cxxbridge1$string$len + 329624
8 chromedriver 0x000000010070eec8 cxxbridge1$string$len + 328172
9 chromedriver 0x00000001007525b4 cxxbridge1$string$len + 604376
10 chromedriver 0x000000010070d568 cxxbridge1$string$len + 321676
11 chromedriver 0x000000010070e1b8 cxxbridge1$string$len + 324828
12 chromedriver 0x0000000100c3a9ac cxxbridge1$str$ptr + 3411716
13 chromedriver 0x0000000100c3dccc cxxbridge1$str$ptr + 3424804
14 chromedriver 0x0000000100c2186c cxxbridge1$str$ptr + 3308996
15 chromedriver 0x0000000100c3e58c cxxbridge1$str$ptr + 3427044
16 chromedriver 0x0000000100c1309c cxxbridge1$str$ptr + 3249652
17 chromedriver 0x0000000100c584b8 cxxbridge1$str$ptr + 3533328
18 chromedriver 0x0000000100c58634 cxxbridge1$str$ptr + 3533708
19 chromedriver 0x0000000100c67648 cxxbridge1$str$ptr + 3595168
20 libsystem_pthread.dylib 0x0000000189b202e4 _pthread_start + 136
21 libsystem_pthread.dylib 0x0000000189b1b0fc thread_start + 8

2024-12-23 10:08:11.220 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单
2024-12-23 10:08:12.342 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click:


(Session info: chrome=131.0.6778.205)
Stacktrace:`

同时浏览器弹出了一个请选择收获地址的弹窗,代码好像没有自动确定,导致提交订单按钮不可点击

@xinyuexiaogui
Copy link

`2024-12-23 10:08:08.891 | INFO | huawei:__start_buying:460 - MainProcess:MainThread - 抢购活动最后下单环节,进行第 79 次尝试立即下单 2024-12-23 10:08:10.064 | WARNING | huawei:__do_start_buying:493 - MainProcess:MainThread - 当前尝试下单失败,立即下单按钮不存在或当前不可点击 2024-12-23 10:08:10.064 | INFO | huawei:__check_can_submit_order:589 - MainProcess:MainThread - 检查是否可以进行下单操作 2024-12-23 10:08:10.071 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0 2024-12-23 10:08:10.076 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0 2024-12-23 10:08:10.078 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:10.153 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:11.217 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click:

(Session info: chrome=131.0.6778.205)
Stacktrace:
0 chromedriver 0x0000000100c6f184 cxxbridge1$str$ptr + 3626716
1 chromedriver 0x0000000100c679d4 cxxbridge1$str$ptr + 3596076
2 chromedriver 0x00000001006d4968 cxxbridge1$string$len + 89228
3 chromedriver 0x000000010071e5e4 cxxbridge1$string$len + 391432
4 chromedriver 0x000000010071cc34 cxxbridge1$string$len + 384856
5 chromedriver 0x000000010071ab78 cxxbridge1$string$len + 376476
6 chromedriver 0x0000000100719f90 cxxbridge1$string$len + 373428
7 chromedriver 0x000000010070f474 cxxbridge1$string$len + 329624
8 chromedriver 0x000000010070eec8 cxxbridge1$string$len + 328172
9 chromedriver 0x00000001007525b4 cxxbridge1$string$len + 604376
10 chromedriver 0x000000010070d568 cxxbridge1$string$len + 321676
11 chromedriver 0x000000010070e1b8 cxxbridge1$string$len + 324828
12 chromedriver 0x0000000100c3a9ac cxxbridge1$str$ptr + 3411716
13 chromedriver 0x0000000100c3dccc cxxbridge1$str$ptr + 3424804
14 chromedriver 0x0000000100c2186c cxxbridge1$str$ptr + 3308996
15 chromedriver 0x0000000100c3e58c cxxbridge1$str$ptr + 3427044
16 chromedriver 0x0000000100c1309c cxxbridge1$str$ptr + 3249652
17 chromedriver 0x0000000100c584b8 cxxbridge1$str$ptr + 3533328
18 chromedriver 0x0000000100c58634 cxxbridge1$str$ptr + 3533708
19 chromedriver 0x0000000100c67648 cxxbridge1$str$ptr + 3595168
20 libsystem_pthread.dylib 0x0000000189b202e4 _pthread_start + 136
21 libsystem_pthread.dylib 0x0000000189b1b0fc thread_start + 8
2024-12-23 10:08:11.220 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:12.342 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click:

(Session info: chrome=131.0.6778.205)
Stacktrace:`
同时浏览器弹出了一个请选择收获地址的弹窗,代码好像没有自动确定,导致提交订单按钮不可点击

我感觉是确认元素错误,你把huawei.py里面的id#checkoutSubmit改成使用ec.order.submit提交订单试一下

@lovelyyutian
Copy link
Author

2024-12-23 10:08:08.891 | INFO | huawei:__start_buying:460 - MainProcess:MainThread - 抢购活动最后下单环节,进行第 79 次尝试立即下单 2024-12-23 10:08:10.064 | WARNING | huawei:__do_start_buying:493 - MainProcess:MainThread - 当前尝试下单失败,立即下单按钮不存在或当前不可点击 2024-12-23 10:08:10.064 | INFO | huawei:__check_can_submit_order:589 - MainProcess:MainThread - 检查是否可以进行下单操作 2024-12-23 10:08:10.071 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0 2024-12-23 10:08:10.076 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0 2024-12-23 10:08:10.078 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:10.153 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:11.217 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click: (Session info: chrome=131.0.6778.205) Stacktrace: 0 chromedriver 0x0000000100c6f184 cxxbridge1$str$ptr + 3626716 1 chromedriver 0x0000000100c679d4 cxxbridge1$str$ptr + 3596076 2 chromedriver 0x00000001006d4968 cxxbridge1$string$len + 89228 3 chromedriver 0x000000010071e5e4 cxxbridge1$string$len + 391432 4 chromedriver 0x000000010071cc34 cxxbridge1$string$len + 384856 5 chromedriver 0x000000010071ab78 cxxbridge1$string$len + 376476 6 chromedriver 0x0000000100719f90 cxxbridge1$string$len + 373428 7 chromedriver 0x000000010070f474 cxxbridge1$string$len + 329624 8 chromedriver 0x000000010070eec8 cxxbridge1$string$len + 328172 9 chromedriver 0x00000001007525b4 cxxbridge1$string$len + 604376 10 chromedriver 0x000000010070d568 cxxbridge1$string$len + 321676 11 chromedriver 0x000000010070e1b8 cxxbridge1$string$len + 324828 12 chromedriver 0x0000000100c3a9ac cxxbridge1$str$ptr + 3411716 13 chromedriver 0x0000000100c3dccc cxxbridge1$str$ptr + 3424804 14 chromedriver 0x0000000100c2186c cxxbridge1$str$ptr + 3308996 15 chromedriver 0x0000000100c3e58c cxxbridge1$str$ptr + 3427044 16 chromedriver 0x0000000100c1309c cxxbridge1$str$ptr + 3249652 17 chromedriver 0x0000000100c584b8 cxxbridge1$str$ptr + 3533328 18 chromedriver 0x0000000100c58634 cxxbridge1$str$ptr + 3533708 19 chromedriver 0x0000000100c67648 cxxbridge1$str$ptr + 3595168 20 libsystem_pthread.dylib 0x0000000189b202e4 _pthread_start + 136 21 libsystem_pthread.dylib 0x0000000189b1b0fc thread_start + 8 2024-12-23 10:08:11.220 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:12.342 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click: (Session info: chrome=131.0.6778.205) Stacktrace:
同时浏览器弹出了一个请选择收获地址的弹窗,代码好像没有自动确定,导致提交订单按钮不可点击

我感觉是确认元素错误,你把huawei.py里面的id#checkoutSubmit改成使用ec.order.submit提交订单试一下

好的,我试试,你抢到了吗,哈哈哈哈

@xinyuexiaogui
Copy link

2024-12-23 10:08:08.891 | INFO | huawei:__start_buying:460 - MainProcess:MainThread - 抢购活动最后下单环节,进行第 79 次尝试立即下单 2024-12-23 10:08:10.064 | WARNING | huawei:__do_start_buying:493 - MainProcess:MainThread - 当前尝试下单失败,立即下单按钮不存在或当前不可点击 2024-12-23 10:08:10.064 | INFO | huawei:__check_can_submit_order:589 - MainProcess:MainThread - 检查是否可以进行下单操作 2024-12-23 10:08:10.071 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0 2024-12-23 10:08:10.076 | INFO | huawei:__get_current_page_type:756 - MainProcess:MainThread - 当前所在页面类型:抢购下单页 地址:https://www.vmall.com/order/rush/confirm?rushActivityId=258140&buttonMode=29&sbomCode=2601010515137&orderReqJson=%5B%7B%22itemId%22%3A%222601010515137%22%2C%22qty%22%3A1%2C%22itemType%22%3A%22S0%22%2C%22gifts%22%3A%5B%5D%2C%22subOrderItemReqArgs%22%3A%5B%5D%2C%22rush_buy_flag%22%3A1%7D%5D&state=0 2024-12-23 10:08:10.078 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:10.153 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:11.217 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click: (Session info: chrome=131.0.6778.205) Stacktrace: 0 chromedriver 0x0000000100c6f184 cxxbridge1$str$ptr + 3626716 1 chromedriver 0x0000000100c679d4 cxxbridge1$str$ptr + 3596076 2 chromedriver 0x00000001006d4968 cxxbridge1$string$len + 89228 3 chromedriver 0x000000010071e5e4 cxxbridge1$string$len + 391432 4 chromedriver 0x000000010071cc34 cxxbridge1$string$len + 384856 5 chromedriver 0x000000010071ab78 cxxbridge1$string$len + 376476 6 chromedriver 0x0000000100719f90 cxxbridge1$string$len + 373428 7 chromedriver 0x000000010070f474 cxxbridge1$string$len + 329624 8 chromedriver 0x000000010070eec8 cxxbridge1$string$len + 328172 9 chromedriver 0x00000001007525b4 cxxbridge1$string$len + 604376 10 chromedriver 0x000000010070d568 cxxbridge1$string$len + 321676 11 chromedriver 0x000000010070e1b8 cxxbridge1$string$len + 324828 12 chromedriver 0x0000000100c3a9ac cxxbridge1$str$ptr + 3411716 13 chromedriver 0x0000000100c3dccc cxxbridge1$str$ptr + 3424804 14 chromedriver 0x0000000100c2186c cxxbridge1$str$ptr + 3308996 15 chromedriver 0x0000000100c3e58c cxxbridge1$str$ptr + 3427044 16 chromedriver 0x0000000100c1309c cxxbridge1$str$ptr + 3249652 17 chromedriver 0x0000000100c584b8 cxxbridge1$str$ptr + 3533328 18 chromedriver 0x0000000100c58634 cxxbridge1$str$ptr + 3533708 19 chromedriver 0x0000000100c67648 cxxbridge1$str$ptr + 3595168 20 libsystem_pthread.dylib 0x0000000189b202e4 _pthread_start + 136 21 libsystem_pthread.dylib 0x0000000189b1b0fc thread_start + 8 2024-12-23 10:08:11.220 | INFO | huawei:__click_submit_order:697 - MainProcess:MainThread - 开始点击提交订单 2024-12-23 10:08:12.342 | ERROR | huawei:__click_submit_order:712 - MainProcess:MainThread - 点击提交订单异常,提交订单按钮不可点击; except: Message: element click intercepted: Element ... is not clickable at point (1230, 834). Other element would receive the click: (Session info: chrome=131.0.6778.205) Stacktrace:
同时浏览器弹出了一个请选择收获地址的弹窗,代码好像没有自动确定,导致提交订单按钮不可点击

我感觉是确认元素错误,你把huawei.py里面的id#checkoutSubmit改成使用ec.order.submit提交订单试一下

好的,我试试,你抢到了吗,哈哈哈哈

没有,这几天没抢,今天试试

@DerekXiX
Copy link

改过之后试了嘛

@lovelyyutian
Copy link
Author

改过之后试了嘛

试了,但是这几天直接排队都过不了,根本到不了提交订单那一步,所以看不到效果!狗华子控货

@xiaorenwu94666
Copy link

改过之后试了嘛

试了,但是这几天直接排队都过不了,根本到不了提交订单那一步,所以看不到效果!狗华子控货

改哪里啊,粘下代码咯

@lovelyyutian
Copy link
Author

改过之后试了嘛

试了,但是这几天直接排队都过不了,根本到不了提交订单那一步,所以看不到效果!狗华子控货

改哪里啊,粘下代码咯

def __click_submit_order2(self, currentUrl):
clickSuccess = False
# self.browser.find_element(By.CSS_SELECTOR, '#checkoutSubmit').click()
self.browser.execute_script("ec.order.submit();")

@zj2080
Copy link

zj2080 commented Dec 26, 2024

用mate70测试,到最以后提交订单时,网页已打开,但程序提示“”进入下单页面失败“” ,是不是 无法获取到下单页面的地址导致的呢

@lovelyyutian
Copy link
Author

用mate70测试,到最以后提交订单时,网页已打开,但程序提示“”进入下单页面失败“” ,是不是 无法获取到下单页面的地址导致的呢

mate70不一样,点立即购买后会新开一个页面,代码没有转到新页面,所以找不到提交订单按钮。但是其他需要抢购的型号点了立即购买后不会新开页面

@TsuiYC
Copy link

TsuiYC commented Dec 26, 2024

今天24年12月26日,两周了,一直进不到确认订单页,搞得我想去买荣耀了......

@lovelyyutian
Copy link
Author

今天24年12月26日,两周了,一直进不到确认订单页,搞得我想去买荣耀了......

放弃了,据说下个月才放货,今天直接连排队界面都进不去了,10.08上来就是暂时缺货

@zj2080
Copy link

zj2080 commented Dec 26, 2024

用mate70测试,到最以后提交订单时,网页已打开,但程序提示“”进入下单页面失败“” ,是不是 无法获取到下单页面的地址导致的呢

mate70不一样,点立即购买后会新开一个页面,代码没有转到新页面,所以找不到提交订单按钮。但是其他需要抢购的型号点了立即购买后不会新开页面

其他的产品刚刚测试 也会打开新页面,进入提交订单页面
image

@lovelyyutian
Copy link
Author

用mate70测试,到最以后提交订单时,网页已打开,但程序提示“”进入下单页面失败“” ,是不是 无法获取到下单页面的地址导致的呢

mate70不一样,点立即购买后会新开一个页面,代码没有转到新页面,所以找不到提交订单按钮。但是其他需要抢购的型号点了立即购买后不会新开页面

其他的产品刚刚测试 也会打开新页面,进入提交订单页面 image

需要抢购的不会新开页面

@xinyuexiaogui
Copy link

用mate70测试,到最以后提交订单时,网页已打开,但程序提示“”进入下单页面失败“” ,是不是 无法获取到下单页面的地址导致的呢

mate70不一样,点立即购买后会新开一个页面,代码没有转到新页面,所以找不到提交订单按钮。但是其他需要抢购的型号点了立即购买后不会新开页面

其他的产品刚刚测试 也会打开新页面,进入提交订单页面 image

需要抢购的不会新开页面

昨天更新的代码你们能运行嘛,我怎么运行出错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants