title: Sending and Receive data from a web page - Selenium
body: <p>I have the following situation:</p>
  <p>I am using the <a href="http://selenium-python.readthedocs.org" rel="nofollow noreferrer">selenium python binding</a> for send to a web page one word, this web site perform some processing (divide the word in the silabes that contain it) and show to the user the result in the following picture of this way:</p>
  <p>Word: Competition</p>
  <p>Result: Word &quot;Competition&quot; divide in silabes</p>
  <p><a href="https://i.stack.imgur.com/boS0B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/boS0B.png" alt="enter image description here" /></a></p>
  <p>In the inspect element tool, I've been checking the id's attributes for the input text</p>
  <p><a href="https://i.stack.imgur.com/kyfmh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kyfmh.png" alt="enter image description here" /></a></p>
  <p>From the following python script through selenium Web driver API, I am sending some word to the search input text and press ENTER Key too for perform the action.</p>
  <pre><code># Currently supported WebDriver implementations are Firefox, Chrome, Ie and Remote
  from selenium import webdriver
  
  # Interacting with the RETURN KEY
  from selenium.webdriver.common.keys import Keys
  
  # Creating a web driver firefox instance
  driver = webdriver.Firefox()
  
  # With the get method we go to the webpage in the url given
  driver.get(&quot;http://tip.iatext.ulpgc.es/silabas/Default.aspx&quot;)
  
  # Assertion that checks if the word &quot;Silabeador&quot; is in the title webpage
  assert &quot;Silabeador&quot; in driver.title
  
  # WebDriver let me interact with items in a web page through of their attributtes
  # More information http://selenium-python.readthedocs.org/locating-elements.html#locating-elements
  elem = driver.find_element_by_id(&quot;MainContent_TextBox1&quot;)
  elem.send_keys(&quot;Competencia&quot;)
  elem.send_keys(Keys.RETURN)
  
  # Four different types of call the same content position
  print (driver.find_element_by_id(&quot;MainContent_Table1&quot;))
  print (driver.find_element_by_tag_name(&quot;table&quot;))
  print (driver.find_element_by_xpath('//div/table[1]'))
  print (driver.find_element_by_xpath(&quot;//form[@id='Form1']//table[@id='MainContent_Table1']&quot;))
  
  # Call the form that contain all output information 
  print (driver.find_element_by_xpath(&quot;/html/body/form[1]&quot;))
  
  #print (driver.page_source)
  
  assert &quot;No results found&quot; not in driver.page_source
  driver.close()
  </code></pre>
  <p>And my output, when I execute the script is the following:</p>
  <ol>
  <li>Open the firefox browser and put the word sent and execute the &quot;enter&quot; form action</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/4Npto.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Npto.png" alt="enter image description here" /></a></p>
  <p>And my output in the print instructions is the following:</p>
  <pre><code>/home/bgarcial/.virtualenvs/test/bin/python /home/bgarcial/workspace/Test/example/search.py
  &lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;7f1ace67-0fb3-42b6-9cc9-af9c58b1715e&quot;, element=&quot;{320d5570-1060-4d4a-a5e6-af557f28f228}&quot;)&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;7f1ace67-0fb3-42b6-9cc9-af9c58b1715e&quot;, element=&quot;{320d5570-1060-4d4a-a5e6-af557f28f228}&quot;)&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;7f1ace67-0fb3-42b6-9cc9-af9c58b1715e&quot;, element=&quot;{320d5570-1060-4d4a-a5e6-af557f28f228}&quot;)&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;7f1ace67-0fb3-42b6-9cc9-af9c58b1715e&quot;, element=&quot;{320d5570-1060-4d4a-a5e6-af557f28f228}&quot;)&gt;
  &lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;7f1ace67-0fb3-42b6-9cc9-af9c58b1715e&quot;, element=&quot;{d16859b4-2029-4ba9-8eeb-d3c8371053eb}&quot;)&gt;
  
  Process finished with exit code 0
  </code></pre>
  <p>In the element attribute is returning the object representation or memory address (? - Is this right? -) of the elements form that I am asking ...</p>
  <p>How to can I retrieve the content or information, in this case the word &quot;Competition&quot; processed, for this situation divided in silabes (Com-pe-ti-tion)and not the string or representations that I currently receive?</p>
  <p>Thanks</p>