automation
-
try { HTMLInputElement ieButton = (HTMLInputElement)myDoc.all.item(ButtonName, 0); ieButton.click(); } catch (Exception ex) { MessageBox.Show(ex.Message); } i m doing internet explorer automation. i do the automation of click event of buttons ,i need same for images ,can any one help me out?
-
try { HTMLInputElement ieButton = (HTMLInputElement)myDoc.all.item(ButtonName, 0); ieButton.click(); } catch (Exception ex) { MessageBox.Show(ex.Message); } i m doing internet explorer automation. i do the automation of click event of buttons ,i need same for images ,can any one help me out?
Take the image as a HTMLElement object and use the InvokeMember method, providing the name of the function as a parameter. I don't know for sure if it'll work, but it's worth a try. Good luck!
-
Take the image as a HTMLElement object and use the InvokeMember method, providing the name of the function as a parameter. I don't know for sure if it'll work, but it's worth a try. Good luck!
can u plz provide me with the chunk of code for images??
-
can u plz provide me with the chunk of code for images??
Check out this thread. http://www.codeproject.com/script/comments/forums.asp?msg=2045657&forumid=1649&mode=all&userid=3539989#xx2045657xx[^] It's not exactly what you're looking for(image clicks), but I think you can make an idea about what you need to do. I think that for the image clicks, you'll have to load the page to HtmlDocument object and use it's InvokeScript method. The parameter will be the name of the script function which is called when the user clicks the image.