Hello All,
I need to run a java script on the Current open web page in web Browser like Chrome, Firefox and IE from my application.
can any one tell me how can I do it?
I am new in C#.
Thank you in Advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankit BPosted Dec 30, 2013, 5:36 AM
Here, the java script Which I have developed do task as follows:
1. It finds the active element which is Text control in Web Page (say username text box)
2. set its value as "Username"
3. Then Find the next Text Control in the same page (say password Text box)
4. Set its value as "Password"
This is what I want to do from my application in c#
Jaganathan BantheswaranPosted Dec 30, 2013, 5:11 AM
You are telling console application, browser, text box.... its confusing. Be specific.
Ankit BPosted Dec 30, 2013, 4:08 AM
I want to paste username and password in relative text boxes of the webpage in Last focused web browser.
This procedure is called script Injection.but I don`t not having any idea about how I can do it.
Dhirendra MisraPosted Dec 30, 2013, 4:07 AM
Please refer the link
http://www.codeproject.com/Questions/423779/how-to-call-javascript-function-in-csharp
Jaganathan BantheswaranPosted Dec 30, 2013, 4:02 AM