Yeah, You can run your pure JavaScript from QTP using RunScript method. Lot of times, we are in need of firing events or simulating actions on web page which is not supported by QTP. At that time, you can use your direct DOM methods and directly execute your script on the web page from QTP like,
- Dim MyPage, SearchBox
- Set MyPage = Browser("title:=Google").Page("title:=Google")
- Set SearchBox = MyPage.RunScript("document.getElementsByName('q')(0);")
- SearchBox.Value="testing"
'if objects available in frames,Set SearchBox = MyPage.RunScript("document.frames(4).document.getElementsByName('q')(0);")
Set objFrame = Browser("title:=Google").Page("title:=Google").Frame("title:=something")
objFrame.RunScript("document.getElementsByName('q')(0);")
Also, you can execute by obtaining actual browser window object if you have IE app like,
- Dim IEApp
- Set IEApp = CreateObject("InternetExplorer.Application")
- IEApp.document.parentWindow.execScript("document.getElementsByName('q')(0);")
In the same way, you have functions to execute a .js file itself. Here they are
- 'For browser object
- Browser().EmbedScript
- Browser().EmbedScriptFromFile
- 'For Page and frame objects
- Page().RunScript / Frame().RunScript
- Page().RunScriptFromFile / Frame().RunScriptFromFile
Your arguments between EMR and Medical Billing System is very comprehensive! Thank you for sharing!
ReplyDeleteIOS Training in Chennai |
iOS Training Institutes in Chennai |
iOS Training
Thanks for sharing this great article! That is very interesting I love reading and I am always searching for informative articles like this.
ReplyDeleteWeb Designing Course in chennai |
web designing training in chennai |
Web Development courses in Chennai
I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog.
ReplyDeleteBest Devops Training in pune
Very nice post here and thanks for it .I always like and such a super contents of these post......
ReplyDeleteselenium training in chennai
java training in chennai
Read all the information that i've given in above article. It'll give u the whole idea about it.
ReplyDeletePython training in bangalore
Python course in pune
Python training in bangalore
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteData Science Training in Indira nagar
Data Science training in marathahalli
Data Science Interview questions and answers
Data Science training in btm layout | Data Science Training in Bangalore
Data Science Training in BTM Layout | Data Science training in Bangalore
Data science training in kalyan nagar
Nice Blog.. Keep on sharing this information
ReplyDeleteselenium training centers in Bangalore
best software testing training institutes in Bangalore with placements
automation testing courses in Bangalore
selenium testing course in Bangalore
software testing institutes in Bangalore
selenium training in Bangalore
best selenium training in Bangalore
selenium course in Bangalore
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeleteexcel advanced excel training in bangalore
Devops Training in Chennai
Appreciating the persistence you put into your blog and detailed information you provide
ReplyDeleteData Science training in Chennai | Data Science Training Institute in Chennai
Data science training in Bangalore | Data Science Training institute in Bangalore
Data science training in pune | Data Science training institute in Pune
Data science online training | online Data Science certification Training-Gangboard
Data Science Interview questions and answers
Data Science Tutorial
After reading your post I understood that last week was with full of surprises and happiness for you. Congratz! Even though the website is work related, you can update small events in your life and share your happiness with us too.
ReplyDeleteangularjs Training in bangalore
angularjs Training in bangalore
angularjs interview questions and answers
angularjs Training in marathahalli
angularjs interview questions and answers
angularjs-Training in pune
Excellent blog, I wish to share your post with my folks circle. It’s really helped me a lot, so keep sharing post like this.
ReplyDeletesoftware testing training institutes in bangalore
software testing training in bangalore
best software testing training institutes in bangalore
software testing training course content
software testing training interview questions
software testing training & placement in bangalore
software testing training center in bangalore
Impressive blog.Useful article it was.
ReplyDeleteJava training in Chennai
Java training in Bangalore
Java training in Hyderabad
Java Training in Coimbatore
Java Online Training