minimize and maximize the screen

226 views
Skip to first unread message

dev

unread,
Mar 2, 2010, 3:43:38 AM3/2/10
to selenium-ruby
I recorderd the script using selenium IDE and exported the test case
to ruby selenium rc . when i tried to run the script using firefox,
the screen opened in a small window . what to be done to maximize the
screen


Regards,
Dev

Mike Schaufelberger

unread,
Mar 2, 2010, 11:59:00 AM3/2/10
to seleni...@googlegroups.com

windowMaximize ( windowName )




--
You received this message because you are subscribed to the Google Groups "selenium-ruby" group.
To post to this group, send email to seleni...@googlegroups.com
To unsubscribe from this group, send email to selenium-rub...@googlegroups.com
For Selenium-Ruby project, visit http://seleniumhq.org/projects/ruby/
For Selenium related questions like Core, Server, and RC client in other language, please go to http://clearspace.openqa.org/community/selenium

Raveendran P

unread,
Mar 3, 2010, 3:23:08 AM3/3/10
to seleni...@googlegroups.com
Hi Dev,

The below code helps you

@selenium.start
@selenium.window_maximize






--
You received this message because you are subscribed to the Google Groups "selenium-ruby" group.
To post to this group, send email to seleni...@googlegroups.com
To unsubscribe from this group, send email to selenium-rub...@googlegroups.com
For Selenium-Ruby project, visit http://seleniumhq.org/projects/ruby/
For Selenium related questions like Core, Server, and RC client in other language, please go to http://clearspace.openqa.org/community/selenium



--
Regards,
P.Raveendran
http://raveendran.wordpress.com

suganya raja

unread,
Aug 1, 2012, 6:49:51 AM8/1/12
to seleni...@googlegroups.com
Hi,

This is sugi In My script where i have to place this


package suganya;

import com.thoughtworks.selenium.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Login {
    Selenium selenium;
   
    @Before
    public void setUp() throws Exception {
       
        selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost/");
        selenium.start();
       
    }

    @Test
    public void Login() throws Exception {
        selenium.open("/magento/index.php/customer/account/login/");
        selenium.type("id=email", "sugi....@gmail.com");
        selenium.type("id=pass", "srsrsr$17");
        selenium.click("id=send2");
        selenium.waitForPageToLoad("30000");
        selenium.click("link=Log Out");
        selenium.waitForPageToLoad("30000");
    }

    @After
    public void tearDown() throws Exception {
        //selenium.stop();

Gary

unread,
Aug 1, 2012, 11:32:32 AM8/1/12
to seleni...@googlegroups.com
selenium.window_maximize() OR
Manage().Window.Size = new Size(1024, 768); 

--

Sakib Rijwan

unread,
Aug 2, 2012, 3:13:21 AM8/2/12
to seleni...@googlegroups.com
selenium.windowMaximize( )

suganya raja

unread,
Aug 2, 2012, 5:08:46 AM8/2/12
to seleni...@googlegroups.com
hi  do u have selenium coding for Login screen with negative senario pls i need urgent

suganya raja

unread,
Aug 3, 2012, 12:32:22 AM8/3/12
to seleni...@googlegroups.com
Thanks for your reply:) hi  do u have selenium coding for Login screen with negative senario pls i need urgent

On Thu, Aug 2, 2012 at 12:43 PM, Sakib Rijwan <sak...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages