Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object control = BrowserWindow.ExecuteScript('$('#yourControlId'););
- protected void PerformAction(object control)
- {
- HtmlDiv htmldiv = ((List<object>)control)[0] as HtmlDiv;
- HtmlSpan htmlspan = null;
- if (htmldiv == null)
- {
- htmlspan = htmldiv [0] as HtmlSpan ;
- if (htmlspan == null) return;
- // Write your action
- }
- if (htmldiv == null && htmlspan == null) return;
- // Do your code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement