Search
Display results as :
Advanced Search
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

browser runs minimized at startup in selenium  RC Empty 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.
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

browser runs minimized at startup in selenium  RC Empty 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
avatar
harendra
Posts : 3
Join date : 2010-02-02

browser runs minimized at startup in selenium  RC Empty 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,
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

browser runs minimized at startup in selenium  RC Empty 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.
avatar
suresh
Posts : 1
Join date : 2010-08-26

browser runs minimized at startup in selenium  RC Empty 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.
avatar
snookala
Posts : 4
Join date : 2010-09-03

browser runs minimized at startup in selenium  RC Empty 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.
avatar
vemu
Posts : 2
Join date : 2010-09-06

browser runs minimized at startup in selenium  RC Empty 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

browser runs minimized at startup in selenium  RC Empty Re: browser runs minimized at startup in selenium RC

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