- harendra
- Posts : 3
Join date : 2010-02-02
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.
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.
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
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
Thu Feb 04, 2010 12:33 pm
hi thanks,
but can you please provide the HTML code for the same,
but can you please provide the HTML code for the same,
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.
This command we have to add it manually.
- suresh
- Posts : 1
Join date : 2010-08-26
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.
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
Fri Sep 03, 2010 10:30 pm
suresh,
it should work. I am using same for both firefox and IE browsers, working fine.
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
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
setUp("http://yoursite.com.au/", "*firefox");
selenium.windowMaximize();
selenium.windowFocus();
// We instantiate and start the browser
}
this worked in the class for me
- Selenium.SeleniumException : Failed to start new browser session: Error while launching browser
- Selenium Test cases runs on local but fail on jenkins server
- Selenium RC for Embedded Browser (OWB)
- Could not start Selenium session: Failed to start new browser session: Error while launching browser
- Could not start Selenium session: Failed to start new browser session: Error while launching browser
Permissions in this forum:
You cannot reply to topics in this forum