WatiN Mouse right button in WatiN
- by Uma
How to use Right Mouse button in WatiN
i tried the follwong code but didn't work..
Div div1 = pzDev.Div("AppExplorer");
Span sp1 = div1.Span(Find.ById(new Regex("cl_")));
NameValueCollection eventProperties = new NameValueCollection();
eventProperties.Add("button", "2");
sp1.FireEvent("onmouseover",eventProperties);
Thread.Sleep(1000);
sp1.FireEvent("onmousedown",eventProperties);
sp1.FireEvent("onmouseup",eventProperties);
can any one plz suggest the right approach