2013-06-15 16:00:12
$('username').val('[email protected]');
$('password').val('password');
$('button').click();
 
$('form_login').submit();
var selector = $('html > asdjkasdjd > asdkjasdkjasd > div:eq(0)').text();
var ten = selector.text();
 
// lay position of cai selector
var position = selector.position();
var x = position.left;
var y = position.right;
 
 
// trong c#
var type = typeof(WebControl);
 var methodInjectMouseMove = type.GetMethod("InjectMouseMove", BindingFlags.NonPublic | BindingFlags.Instance);
            methodInjectMouseMove.Invoke(WebView, new object[] { x, y });
            var methodInjectMouseDown = type.GetMethod("InjectMouseDown", BindingFlags.NonPublic | BindingFlags.Instance);
            methodInjectMouseDown.Invoke(WebView, new object[] { Mouse.LeftButton });
            var methodInjectMouseUp = type.GetMethod("InjectMouseUp", BindingFlags.NonPublic | BindingFlags.Instance);
            methodInjectMouseUp.Invoke(WebView, new object[] { Mouse.LeftButton });
 
 
$(document.elementFromPoint(x, y)).click();  
 
var selector2 = $('sadasda daSD>ASdasd asd> textarea');
selector2.val('hello world');
selector2.keydown(function(e){
	alert(e.which); //
});
 
 
 
Invalid Email or Password