Electron microscopy
 
send_keys() and its Uploading Images to Webpage
- Python for Integrated Circuits -
- An Online Book -
Python for Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

Problem 78 in page4806. selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable.
             Root cause: find_element(By.XPATH, "") is used to fill in a box by send_key("xyz"). E.g.:
                               element = driver.find_element(By.XPATH, "abc"). Here, abc is obtained by right click mouse, with "Copy full XPath", to get full path.
                               element.send_key("xyz"). Here, xyz is the content to be filled into the box.
                                   element.send_key("xyz")
             Solution: find_element(CSS_SELECTOR, "abc") is used to fill in a box by send_key("xyz"). E.g.:
                               element = driver.find_element(CSS_SELECTOR, "abc"). Here, abc is obtained by "SelectorsHub > Copy Relative cssSelector".
                               element.send_key("xyz"). Here, xyz is the content to be filled into the box.

============================================

Fill a google form with Xpath: Code:
              copy Xpath from a webpage
Result 1:
              copy Xpath from a webpage
Result 2:
              copy Xpath from a webpage
Fill in 1:
              copy Xpath from a webpage
Result 3:
              copy Xpath from a webpage
Click "Next" and then result 4:
              copy Xpath from a webpage

===================================================

Fill a search form with an element IDh: Code:
              copy Xpath from a webpage
Output 1:
              copy Xpath from a webpage
Output 2:
              copy Xpath from a webpage

===================================================

Use for loop to auto-fill in a webpage and submit online for the list of users in a csv file: Code:
              copy Xpath from a webpage
Part of the filled form:               
              copy Xpath from a webpage
Part contents in the csv file:               
              copy Xpath from a webpage
Code from the webpage:               
              copy Xpath from a webpage
              copy Xpath from a webpage
              copy Xpath from a webpage

===================================================

Google Auto Search: Code:
              copy Xpath from a webpage
csv file:               
              copy Xpath from a webpage

===================================================

The obtained XPath is "//*[@id="resumable-browse"]/input", then paste it into the code: Code:
          Upload Files to Webpages

===================================================

Code:
          Upload Files to Webpages
Output:         
          Upload Files to Webpages
          Upload Files to Webpages
          Upload Files to Webpages

===================================================

Code:
          Upload Files to Webpages

===================================================


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 



















































 

 

 

 

 

=================================================================================