Hello. I'm trying to find opened webpage by URI and to launch JS on it. I found some samples and wrote simple method. That's how it look:
Code:
private void GetHtmlCode()
{
    string uri = GetTargetURI();
    if(!string.IsNullOrEmpty(uri))
    {
        IE ie = IE.AttachTo<IE>(Find.ByUrl(uri));
        htmlCode = ie.Eval(JavaScriptToRun);
    }
    else
    {
        MessageBox.Show("Target
...