Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
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

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

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

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

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

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

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

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