When uploading a video there are some failure errors that occurs frequently. The aim of this PR is to fix those fails to have a uploading rate of 100%
Content of the PR:
Adds the cyan color as a debug color
Makes the remove_split_window skippable if the user wants it
Adds an uploading_wait to avoid a Timeout Exception whan a video takes more than 60s to get uploaded
Adds a Timeout Exception in the _set_video function to have better exception handling
Fixes the Something went wrong with the date picker bug (might be temporary)
Fixes the Failed to set schedule: Message: element not interactable bug
Good To Know:
I am currently working on the Failed to set schedule: Message: element not interactable:
Edit: Did some investigation, this error occurs when hour_to_click gets clicked and hour_to_click.is_displayed() is false (the wanted hour is not visible on the screen). So that means that the ScrollIntoView script does not work properly.
Edit 2: Noticed that relaunching the script when hour_to_click.is_displayed() is false solves the problem. Might be useful as a temporary fix but I will keep investigating to find the origin of the bug
Edit 3: The first scrollIntoView script is called too fast which can sometimes break. A time.sleep(1) solves the problem, I have pushed the fix. I don't know if it is a good idea to use time.sleep with selenium though
I have left a comment about an error than happens sometimes when trying to upload the video. Indeed we are waiting for a //video but it is never found. I have fixed this thing on my fork but did not push the changes because it might not be consistent with the way this package is coded.
When uploading a video there are some failure errors that occurs frequently. The aim of this PR is to fix those fails to have a uploading rate of 100%
Content of the PR:
remove_split_window
skippable if the user wants ituploading_wait
to avoid a Timeout Exception whan a video takes more than 60s to get uploadedTimeout Exception
in the_set_video
function to have better exception handlingSomething went wrong with the date picker
bug (might be temporary)Fixes the
Failed to set schedule: Message: element not interactable
bugGood To Know:
I am currently working on the
Failed to set schedule: Message: element not interactable
:Edit: Did some investigation, this error occurs when
hour_to_click
gets clicked andhour_to_click.is_displayed()
is false (the wanted hour is not visible on the screen). So that means that theScrollIntoView
script does not work properly.Edit 2: Noticed that relaunching the script when
hour_to_click.is_displayed()
is false solves the problem. Might be useful as a temporary fix but I will keep investigating to find the origin of the bugEdit 3: The first
scrollIntoView
script is called too fast which can sometimes break. Atime.sleep(1)
solves the problem, I have pushed the fix. I don't know if it is a good idea to usetime.sleep
with selenium though//video
but it is never found. I have fixed this thing on my fork but did not push the changes because it might not be consistent with the way this package is coded.