!!

Welcome to Selenium Webdriver Forum

As a web user you can read and search through forum content. Once you have registered and signed you can post topics, post replies, set up watch lists, modify forum settings, and use private messaging.

Author Topic: How to call javascript function from .js file.  (Read 2566 times)

Deepak

  • Web User
How to call javascript function from .js file.
« on: May 03, 2012, 09:59:44 PM »
I have a javascript function written in library file Library.js, which
 accepts some parameters. I want to call this function in my selenium
 script which is written in java) . Can someone suggest me how to call
 a java script function in selenium scripts?

Jayaraman

  • Web User
Re: How to call javascript function from .js file.
« Reply #1 on: May 03, 2012, 10:00:07 PM »
You can do by using the HTTPCommandProcessor Object to call the
 javascripts which are part of userextension.js
 
Please refer the below links.
 
http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/java/...
 .
 
http://seleniumhq.org/docs/08_user_extensions.html
 Hope this is helpful.
 
-Jay!!
 

- Show quoted text -

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1627 Views
Last post February 23, 2012, 01:28:15 PM
by Balint Farkas
1 Replies
956 Views
Last post February 23, 2012, 08:08:37 PM
by RaKa
3 Replies
1206 Views
Last post April 01, 2012, 08:21:35 PM
by Joe
6 Replies
2173 Views
Last post April 03, 2012, 03:20:40 PM
by Benjamin Hawkes-Lewis
0 Replies
1190 Views
Last post December 06, 2012, 11:41:19 AM
by Kumar218
5 Replies
6398 Views
Last post March 27, 2013, 09:52:22 PM
by Yogesh Balodi
0 Replies
483 Views
Last post April 10, 2013, 07:27:51 AM
by bouchehda