wkaisertexas / tiktok-uploader

Automatically ⬆️ upload TikTok videos
https://pypi.org/project/tiktok-uploader/
MIT License
390 stars 91 forks source link

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"} #44

Closed thetribecalledquest closed 1 year ago

thetribecalledquest commented 1 year ago

Hello. Im trying to run the code but it stops at the content creator upload page. I think its unable to locate the upload button? Any help would be appreciated, thanks in advance.

[19:35:58] Uploading video file
[13488:13104:0919/193558.511:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[13488:13104:0919/193603.036:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
[13488:13104:0919/193603.913:ERROR:socket_manager.cc(141)] Failed to resolve address for stun.l.google.com., errorcode: -105
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"}
  (Session info: chrome=116.0.5845.188); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
        GetHandleVerifier [0x004537C3+48947]
        (No symbol) [0x003E8551]
        (No symbol) [0x002EC92D]
        (No symbol) [0x00319E38]
        (No symbol) [0x00319EFB]
        (No symbol) [0x00348EF2]
        (No symbol) [0x003350D4]
        (No symbol) [0x003475DA]
        (No symbol) [0x00334E86]
        (No symbol) [0x003116C7]
        (No symbol) [0x0031284D]
        GetHandleVerifier [0x0069FDF9+2458985]
        GetHandleVerifier [0x006E744F+2751423]
        GetHandleVerifier [0x006E1361+2726609]
        GetHandleVerifier [0x004D0680+560624]
        (No symbol) [0x003F238C]
        (No symbol) [0x003EE268]
        (No symbol) [0x003EE392]
        (No symbol) [0x003E10B7]
        BaseThreadInitThunk [0x7723FCC9+25]
        RtlGetAppContainerNamedObjectPath [0x77387B1E+286]
        RtlGetAppContainerNamedObjectPath [0x77387AEE+238]

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"}
  (Session info: chrome=116.0.5845.188); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
        GetHandleVerifier [0x004537C3+48947]
        (No symbol) [0x003E8551]
        (No symbol) [0x002EC92D]
        (No symbol) [0x00319E38]
        (No symbol) [0x00319EFB]
        (No symbol) [0x00348EF2]
        (No symbol) [0x003350D4]
        (No symbol) [0x003475DA]
        (No symbol) [0x00334E86]
        (No symbol) [0x003116C7]
        (No symbol) [0x0031284D]
        GetHandleVerifier [0x0069FDF9+2458985]
        GetHandleVerifier [0x006E744F+2751423]
        GetHandleVerifier [0x006E1361+2726609]
        GetHandleVerifier [0x004D0680+560624]
        (No symbol) [0x003F238C]
        (No symbol) [0x003EE268]
        (No symbol) [0x003EE392]
        (No symbol) [0x003E10B7]
        BaseThreadInitThunk [0x7723FCC9+25]
        RtlGetAppContainerNamedObjectPath [0x77387B1E+286]
        RtlGetAppContainerNamedObjectPath [0x77387AEE+238]

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@type='file']"}
  (Session info: chrome=116.0.5845.188); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
        GetHandleVerifier [0x004537C3+48947]
        (No symbol) [0x003E8551]
        (No symbol) [0x002EC92D]
        (No symbol) [0x00319E38]
        (No symbol) [0x00319EFB]
        (No symbol) [0x00348EF2]
        (No symbol) [0x003350D4]
        (No symbol) [0x003475DA]
        (No symbol) [0x00334E86]
        (No symbol) [0x003116C7]
        (No symbol) [0x0031284D]
        GetHandleVerifier [0x0069FDF9+2458985]
        GetHandleVerifier [0x006E744F+2751423]
        GetHandleVerifier [0x006E1361+2726609]
        GetHandleVerifier [0x004D0680+560624]
        (No symbol) [0x003F238C]
        (No symbol) [0x003EE268]
        (No symbol) [0x003EE392]
        (No symbol) [0x003E10B7]
        BaseThreadInitThunk [0x7723FCC9+25]
        RtlGetAppContainerNamedObjectPath [0x77387B1E+286]
        RtlGetAppContainerNamedObjectPath [0x77387AEE+238]

[19:36:10] Failed to upload C:\Users\Nick\Desktop\tiktok-uploader-main\video.mp4
[19:36:10]
    A video failed to upload
neves8232 commented 1 year ago

That's because of the language that's being shown on the browser, try to set headless to False and see if the creators page is at English or other language

thetribecalledquest commented 1 year ago

That's because of the language that's being shown on the browser, try to set headless to False and see if the creators page is at English or other language

The creator page is in English

neves8232 commented 1 year ago

Don't use the pip install version tho, it's not updated

thetribecalledquest commented 1 year ago

Don't use the pip install version tho, it's not updated

I stopped using the pip version and everything seems to work now, But I have encountered another problem, when the file finishes uploading, there appears a pop up to "split into multiple parts to get more exposure". When I click the "not now" button It sucessfully uploads, but when I dont interact with it whatsoever, the program crashes. Could you help me and tell how can I fix it?

obraz

neves8232 commented 1 year ago

That doesn't happen to me, but what does is that the accept cookie banner is on the way of the post button, does it appear to you the accept cookie banner also ?

thetribecalledquest commented 1 year ago

For me it does appear before the upload screen, but it goes away/closes by itself

thetribecalledquest commented 1 year ago

Don't use the pip install version tho, it's not updated

This fixed my original problem, thank you.