You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up several automations and I am encountering two problems on two different web pages regarding the input to upload a doc.
My code is as follows:
` selector = 'input[type="file"]'
if self.is_element_present(selector):
print('-----------PRESENT-----------')
if self.is_element_visible(selector):
print('-----------VISIBLE-----------')
if self.is_element_enabled(selector):
print('-----------ENABLED-----------')
if self.show_element(selector):
print('-----------SHOW-----------')
if self.is_element_clickable(selector):
print('-----------CLICKCLICK-----------')
if self.is_element_in_an_iframe(selector):
print('-----------IFRAME-----------')
self.send_keys(selector,data['documents']['passport'])`
In this case only the PRESENT and ENABLED are printed and I always receive the error:
Element {input[type="file"]} was not visible after 7 seconds!
Not only when I do the send_keys but also when I do self.assert_element.
The input is not inside any frame or shadow-root. I have tried accessing the input by its ID, Xpath, class etc etc. The strange thing is that I have no problem uploading the document with php webdriver selenium, ui vision or the selenium python.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to set up several automations and I am encountering two problems on two different web pages regarding the input to upload a doc.
My code is as follows:
` selector = 'input[type="file"]'
In this case only the PRESENT and ENABLED are printed and I always receive the error:
Element {input[type="file"]} was not visible after 7 seconds!
Not only when I do the send_keys but also when I do self.assert_element.
The input is not inside any frame or shadow-root. I have tried accessing the input by its ID, Xpath, class etc etc. The strange thing is that I have no problem uploading the document with php webdriver selenium, ui vision or the selenium python.
I have tried the demos or uploading files to the following websites and they go perfectly:
https://tus.io/demo
https://cgi-lib.berkeley.edu/ex/fup.html
https://seleniumbase.io/w3schools/file_upload
Has anyone found themselves in the same situation?
Beta Was this translation helpful? Give feedback.
All reactions