Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

browser runs minimized at startup in selenium RC

View previous topic View next topic Go down

browser runs minimized at startup in selenium RC

Post by harendra 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.

harendra

Posts : 3
Join date : 2010-02-02

Back to top Go down

Re: browser runs minimized at startup in selenium RC

Post by Adviser 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

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: browser runs minimized at startup in selenium RC

Post by harendra on Thu Feb 04, 2010 12:33 pm

hi thanks,
but can you please provide the HTML code for the same,

harendra

Posts : 3
Join date : 2010-02-02

Back to top Go down

Re: browser runs minimized at startup in selenium RC

Post by Adviser 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.

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Browser runs minimized at startup

Post by suresh on Thu Aug 26, 2010 4:11 pm

Hi,

I have implemented the above code but still the browser minimized at startup.

suresh

Posts : 1
Join date : 2010-08-26

Back to top Go down

Re: browser runs minimized at startup in selenium RC

Post by snookala on Fri Sep 03, 2010 10:30 pm

suresh,

it should work. I am using same for both firefox and IE browsers, working fine.

snookala

Posts : 4
Join date : 2010-09-03

Back to top Go down

Re: browser runs minimized at startup in selenium RC

Post by vemu 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

vemu

Posts : 2
Join date : 2010-09-06

Back to top Go down

Re: browser runs minimized at startup in selenium RC

Post by Sponsored content Today at 6:37 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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