Donate

How To Set Attribute Option Element In OpenWebkitSharp C#

Here's how you set option element attribute using OpenWebKitSharp.
foreach (WebKit.DOMNode optionElement in nodeItem.ChildNodes)  
 {  
   if (searchInnerHtml && optionElement.TextContent.Equals(searchInnerString))  
   {  
       WebKit.InteropIDOMHTMLElement el =    
       (WebKit.Interop.IDOMHTMLElement)optionElement.GetWebKitObject();  
       el.setAttribute("selected", "selected");  
   }  
 }  

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

Remove Cookies From CookieContainer Class

How To Test Or Check Dead Pixels And Backlight Bleed On Your Monitor Using Dead Pixel Checker In Windows 11