File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in selenium.windowMaximize

 
syruss kumar
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have created a selenium testcase which will open up the site and execute the testcase but in case of failure i have to captured the screen shot .The problem in selenium executes the testcase in minimized state so it captures the blank screen .





Please suggest me how to maximize the window.

Thanks in advance

 
Raghavendra K Chunduri
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class WindowMax{

public static void main(String args[])throws Exception{
WebDriver driver=new InternetExplorerDriver();

WebDriverBackedSelenium selenium=new WebDriverBackedSelenium(driver,"http://www.google.com");
selenium.open("http://www.google.com");
selenium.windowMaximize();
Thread.sleep(100);
}
}

Use this code this will help you out
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic