Retrieve selected elements in GeckoWebBrowser
Posted
by Mostafa Mahdieh
on Stack Overflow
See other posts from Stack Overflow
or by Mostafa Mahdieh
Published on 2010-04-30T17:23:50Z
Indexed on
2010/04/30
17:27 UTC
Read the original article
Hit count: 407
I am using GeckoFX version 1.9.1.0 with C#.NET. I have a placed a GeckoWebBrowser Component (geckoWebBrowser1) and a Button (button1) in a form and have navigated the browser to a page. Some text in the page can be selected. This text is composed of one or more DOM elements. When button1 is clicked, I want to retrieve the DOM elements that compose the selected text in the page and give an id to one of those elements and save add these ids to a list (in C# space). How can I do this?
© Stack Overflow or respective owner