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

Fail search iframe (upload video) #184

Open
Eff1c opened this issue Dec 25, 2024 · 1 comment
Open

Fail search iframe (upload video) #184

Eff1c opened this issue Dec 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Eff1c
Copy link

Eff1c commented Dec 25, 2024

Error in upload.py file, _change_to_upload_iframe func, 244-247 line:

iframe_selector = EC.presence_of_element_located(
    (By.XPATH, config['selectors']['upload']['iframe'])
    )
iframe = WebDriverWait(driver, config['explicit_wait']).until(iframe_selector)

Hasn't iframe on page.
Then, when selenium can't find it - return:

  File "/Users/me/PycharmProjects/proj/.venv/lib/python3.12/site-packages/selenium/webdriver/support/wait.py", line 105, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: 
Stacktrace:
0   chromedriver                        0x000000010d3e6268 chromedriver + 7098984
1   chromedriver                        0x000000010d3de13a chromedriver + 7065914
2   chromedriver                        0x000000010cd82d70 chromedriver + 400752
3   chromedriver                        0x000000010cdd1bd3 chromedriver + 723923
4   chromedriver                        0x000000010cdd1ed1 chromedriver + 724689
5   chromedriver                        0x000000010ce17e74 chromedriver + 1011316
6   chromedriver                        0x000000010cdf623d chromedriver + 873021
7   chromedriver                        0x000000010ce1515e chromedriver + 999774
8   chromedriver                        0x000000010cdf5fb3 chromedriver + 872371
9   chromedriver                        0x000000010cdc45c2 chromedriver + 669122
10  chromedriver                        0x000000010cdc559e chromedriver + 673182
11  chromedriver                        0x000000010d3ab020 chromedriver + 6856736
12  chromedriver                        0x000000010d3af050 chromedriver + 6873168
13  chromedriver                        0x000000010d38d3d7 chromedriver + 6734807
14  chromedriver                        0x000000010d3af9ee chromedriver + 6875630
15  chromedriver                        0x000000010d37cc14 chromedriver + 6667284
16  chromedriver                        0x000000010d3cc778 chromedriver + 6993784
17  chromedriver                        0x000000010d3cc936 chromedriver + 6994230
18  chromedriver                        0x000000010d3ddd18 chromedriver + 7064856
19  libsystem_pthread.dylib             0x00007ff80c2d218b _pthread_start + 99
20  libsystem_pthread.dylib             0x00007ff80c2cdae3 thread_start + 15

System Configuration:

  • MacOS (Intel)
  • Chrome 131.0.6778.205
  • Python 3.12
  • tiktok-uploader 1.0.16
@Eff1c Eff1c added the bug Something isn't working label Dec 25, 2024
@Eff1c
Copy link
Author

Eff1c commented Dec 25, 2024

I comment all using _change_to_upload_iframe and it work.
Also I comment check post_confirmation and change next configs from config.toml:
process_confirmation -> "//div[contains(@class, 'info-main')]/div[contains(@class, 'success')]"
post -> "//button[contains(@data-e2e, 'post_video_button')]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant