title: Clicking on the link with the webbrowser c#
body: <p>The underlying code, choose the word you want. I wrote these words I want to click on the link. Words may be wrong, so I use Google Translator. Only the "range" values ​​statement how to click? Thank you.</p>
  
  <pre><code>if (webBrowser1.Document != null)
              {
                  IHTMLDocument2 document = webBrowser1.Document.DomDocument as IHTMLDocument2;
                  if (document != null)
                  {
                      IHTMLSelectionObject currentSelection = document.selection;
  
                      IHTMLTxtRange range = currentSelection.createRange() as IHTMLTxtRange;
                      if (range != null)
                      {
                          const String search = "Sayfalar";
  
                          if (range.findText(search, search.Length, 2))
                          {
                              range.select();
  
                          }
                      }
                  }
  
  
  
              }
  </code></pre>