title: How to send keys to a form with no id and or name in selenium (Python)
body: <p>i am working on getting data from a website and any time i click on a link  to get phone number, a modal form is opened to ask for my phone number first and the phone number is shown to me.</p>
  
  <p>The challenge i have now is, i want to send keys to the input field, so because the input field has no name or id, i located the input field using xpath:</p>
  
  <pre><code>xxx = driver.find_element_by_xpath("//input[@placeholder='081xxxxxxxx']")
  </code></pre>
  
  <p>I printed this and it returned some selenium objects, but when i try sending keys like:</p>
  
  <pre><code>xxx.send_keys('08100000000')
  </code></pre>
  
  <p>Here is a snippet of the html code:</p>
  
  <pre><code>&lt;div class="row"&gt;
  &lt;div class="medium-12 columns"&gt;
      &lt;div class="guest-text"&gt;
          One step closer! &lt;br /&gt;
          &lt;span&gt;Please provide your contact number to view business contact details&lt;/span&gt;
      &lt;/div&gt;
  
      &lt;form action="" data-abide="ajax" novalidate="novalidate"&gt;
          &lt;div id="txtUserPhoneNumber" ng-show="!isLoggedIn &amp;&amp; collectUserPhone == ''" class="guest-no"&gt;
              &lt;label&gt;
                  &lt;div class="guest-label"&gt;Phone Number&lt;/div&gt;
                  &lt;input type="text" placeholder="081xxxxxxxx" ng-model="UserPhoneNew" required data-invalid="" aria-invalid="true" maxlength="11"&gt;
  
              &lt;/label&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have tried:</p>
  
  <pre><code>xxx = driver.find_element_by_xpath("//input[@placeholder='081xxxxxxxx']")
  xxx.send_keys('08100000000')
  
  dummy_number = driver.find_element_by_xpath("//div[contains(@class, 'modal small guest')]/div[contains(@class, 'guest-modal-wrapper')]//form[1]//input[1]")
  dummy_number.send_keys('081000000')
  </code></pre>
  
  <p>I got error saying:</p>
  
  <pre><code>Traceback (most recent call last):
  File "Dropbox/automation/vconnect.py", line 76, in &lt;module&gt;
      RunAutomation.instantiatechrome()
    File "Dropbox/automation/vconnect.py", line 61, in instantiatechrome
      xxx.send_keys('081xxxxxxxx')
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 479, in send_keys
      'value': keys_to_typing(value)})
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webelement.py", line 628, in _execute
      return self._parent.execute(command, params)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
      self.error_handler.check_response(response)
    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 237, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.ElementNotVisibleException: Message: element not visible
    (Session info: chrome=66.0.3359.139)
    (Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.13.0-39-generic x86_64)
  </code></pre>
  
  <p>Your opinion is welcomed.</p>