Tuesday, June 11, 2013

Set Webbrowser Input Box Value In C# application

//wb as webbrowser

//if element have not assign id attribute
foreach (HtmlElement item in wb.Document.GetElementsByTagName("input")) 
             if (item != null && item.Name == "password")
             { 
                         item.SetAttribute("Value", "admin123");                                                             
                         break;
             }
}//if element have assign id attribute

HtmlElement Userid = wb.Document.GetElementById("username");
Userid.SetAttribute("Value", "admin");


25 comments:

  1. I read your post and I found it amazing! thank!
    Bios Chip Asrock

    ReplyDelete
    Replies
    1. Ankur Bhargav'S C Bolg >>>>> Download Now

      >>>>> Download Full

      Ankur Bhargav'S C Bolg >>>>> Download LINK

      >>>>> Download Now

      Ankur Bhargav'S C Bolg >>>>> Download Full

      >>>>> Download LINK VM

      Delete
  2. This is beyond doubt a blog significant to follow. You’ve dig up a great deal to say about this topic, and so much awareness. I believe that you recognize how to construct people pay attention to what you have to pronounce, particularly with a concern that’s so vital. I am pleased to suggest this blog.
    python Training in Pune
    python Training in Chennai
    python Training in Bangalore

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Wonderful thanks for sharing an amazing idea. keep it...

    Softgen Infotech is the best SAP Training in Bangalore , providing SAP Courses with 100% placement support. Our Centre has Certified Trainers who are working Professionals with more than 10 Years of real time experience on SAP Projects.

    ReplyDelete
  5. I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community. devops training in chennai | devops training in anna nagar | devops training in omr | devops training in porur | devops training in tambaram | devops training in velachery

    ReplyDelete
  6. Ankur Bhargav'S C Bolg >>>>> Download Now

    >>>>> Download Full

    Ankur Bhargav'S C Bolg >>>>> Download LINK

    >>>>> Download Now

    Ankur Bhargav'S C Bolg >>>>> Download Full

    >>>>> Download LINK cQ

    ReplyDelete
  7. href="https://istanbulolala.biz/">https://istanbulolala.biz/
    EVLQ4

    ReplyDelete