title: Get data of specific cell in HTML Table using Selenium Webdriver with Python
body: <p>My question aim: <strong>To get the Name of the candidate (which is a part of a HTML Table) and write it into a file.</strong> </p>
  
  <p><em>(my entire program, in point 2, aims at: Typing a register number in a website, hitting submit, getting the name of the candidate (which is the problem), putting the registration number with name in a file, then going back and repeating the same till the last number.)</em>
  The table looks as follows: <a href="http://i.stack.imgur.com/PUDKA.png" rel="nofollow">HTML TABLE IN THE SITE</a></p>
  
  <ol>
  <li>The HTML Code, only for the table is as follows: </li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table  id="details" class="table"&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;td width="15%"&gt;Name&lt;/td&gt;
  &lt;td width="85%" colspan="3"&gt;&lt;span style="font-weight: bold"&gt; ANILKUMAR                     &lt;/span&gt;&lt;/td&gt;
  
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Reg. No.&lt;/td&gt;
  &lt;td colspan="3"&gt;&lt;span style="font-weight: bold"&gt; 461684&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>2.My <strong>PYTHON</strong> code , as specified according to the aim, </p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import pyautogui,pyperclip
  
  #Function.
  def fun1(roll_no):
      while(i&lt;999999):
  
          #INPUT: Put's the number in text bar, in Home Page, then clicks "Submit"
  
          inputElement = browser.find_element_by_id("reg")    
          inputElement.send_keys(roll_no)
          inputElement.send_keys(Keys.ENTER)
  
          #SNIPPET TO GET THE NAME OF CANDIDATE, HOW?
  
          #fs.write(str(i)+'\t'+name+'\n')  , to WRITE INTO FILE.
          #'name' in above line refers to the candidate's name, a string. 
  
          #OUT: Click's the "Back" button to go back to Home Page.
  
          outputElement = browser.find_element_by_link_text('Back')
          outputElement.click()
          roll_no = roll_no + 1
  
  
  
  #MAIN MODULE
  
  #OPENS Firefox using selenium webdriver
  browser = webdriver.Firefox()
  
  #The intended "Home Page"
  browser.get("http://karresults.nic.in/indexpuc_2016.asp")
  
  roll_no=110000  #Starting Roll Number.
  
  #File open for writing.
  fs=open("testfile.txt","w")
  #call the function
  fun1(i)
  </code></pre>
  
  <ol start="3">
  <li>The Name of the candidate is always at row=0,col=1. 
  All I need is to access the cell having the name, using selenium. I don't need to loop through all the cells. 
  Please help me, I'm pretty new to Python and Selenium Webdriver Utility. Also, I've a link included of the picture above(I can't post pictures directly, as I've new, this is my first question and thus no reputation).
  Any help will be greatly appreciated. 
  Thank You!</li>
  </ol>