A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
Ant, Maven and Other Build Tools
Author
how to call a javascript in webdriver and close the internetExplorer window
linda russel
Ranch Hand
Joined: Jan 05, 2012
Posts: 86
posted
Mar 14, 2012 06:25:28
0
@After public void methodFour(){ System.out.println("Hi am in after now"); JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("window.close()"); }
this did not work!!
is there any other javascript for this?
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: how to call a javascript in webdriver and close the internetExplorer window
Similar Threads
jQuery advantages over javascript
how to pass the values and how to get the Arraylist table from java script function
Converting a javascript variable to Java variable.
Form data should not be displayed on clicking back button
How to get the hidden field from JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter