Share
Go down
harendra
Posts : 3
Join date : 2010-02-02

browser runs minimized at startup in selenium RC

on Wed Feb 03, 2010 9:29 pm
I am running my tests using Selenium RC on IE. I want IE browser to be maximized when the test starts.

But During test, the browser always needs to be stretched by
clicking it twice & maximize it manually.





I have tried with windowFoucus and windowMaximize commands,
but still does not work. Please help me with HTML code and parameters..



Thanks.
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: browser runs minimized at startup in selenium RC

on Thu Feb 04, 2010 11:41 am
hi,
Try to run this sample code and see what happen.

import com.thoughtworks.selenium.*;

public class testElementProperty
{
private Selenium browser;


public static void main(String args[])
{
testElementProperty obj = new testElementProperty();
obj.setUp();
}



public void setUp()
{
browser = new DefaultSelenium("localhost",4444,"*iexplore", "http://www.google.co.in/");
browser.start();
browser.windowMaximize();
browser.open("http://www.google.co.in/");
browser.type("q", "selenium rc");
browser.click("btnG");

}


Hope this will help you. Best of luck.

Bye
harendra
Posts : 3
Join date : 2010-02-02

Re: browser runs minimized at startup in selenium RC

on Thu Feb 04, 2010 12:33 pm
hi thanks,
but can you please provide the HTML code for the same,
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: browser runs minimized at startup in selenium RC

on Thu Feb 04, 2010 8:09 pm
The window maximize feature is not available in selenium IDE and if you are trying to run that code, windowMaximize step won't execute.

This command we have to add it manually.
suresh
Posts : 1
Join date : 2010-08-26

Browser runs minimized at startup

on Thu Aug 26, 2010 4:11 pm
Hi,

I have implemented the above code but still the browser minimized at startup.
snookala
Posts : 4
Join date : 2010-09-03

Re: browser runs minimized at startup in selenium RC

on Fri Sep 03, 2010 10:30 pm
suresh,

it should work. I am using same for both firefox and IE browsers, working fine.
vemu
Posts : 2
Join date : 2010-09-06

Re: browser runs minimized at startup in selenium RC

on Tue Sep 07, 2010 5:47 am
public void setUp() throws Exception {
setUp("http://yoursite.com.au/", "*firefox");
selenium.windowMaximize();
selenium.windowFocus();

// We instantiate and start the browser
}

this worked in the class for me
Sponsored content

Re: browser runs minimized at startup in selenium RC

Back to top
Permissions in this forum:
You cannot reply to topics in this forum