Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

program in eclipse

View previous topic View next topic Go down

program in eclipse

Post by divya_agsrdk on Thu Jan 31, 2013 11:25 am

import com.thoughtworks.selenium.*;
@SuppressWarnings("deprecation")
public class login extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
public void testloginlogout(){
selenium.setSpeed("2000");
selenium.open("/login.php");
selenium.windowMaximize();
selenium.type("//input[@name='username']", "mytest");
selenium.type("//input[@name='password']", "mytest");
selenium.click("//input[@type='button']");
selenium.waitForPageToLoad("50000");
}
}

Can u tel me wt those package import com.thoughtworks.selenium.*;does?
@SuppressWarnings("deprecation") means --?
SeleneseTestCase -- >wt is it ? class?
selenium.click()--- selenium and click wt v say here?

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by adityac on Thu Jan 31, 2013 2:06 pm

-SeleneseTestCase is a class and u r using the code of that class in login class

-U might be created an object DefaultSelenium selenium=new DefaultSelenium(); sme thng lik this...whch means methods in DefaultSelenium is stored in selenium and u r using the selenium.

-U r importing the packages of com.thoughtworks.selenium.* using import

-the @SuppressWarnings is a annotation tells the compiler to suppress specific warnings that it would otherwise generate

hope u understood

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by divya_agsrdk on Thu Jan 31, 2013 2:21 pm

ya got it..

selenium .click - wt v call selenium n click as?

Like method?

DefaultSelenium selenium=new DefaultSelenium();

here wt s selenium ?

DefaultSelenium ?


wt v call them?



divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by adityac on Thu Jan 31, 2013 2:38 pm

DefaultSelenium selenium=new DefaultSelenium();
DefaultSelenium = class name
selenium=object...

Are u aware of java??

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by divya_agsrdk on Thu Jan 31, 2013 2:48 pm

ya knw java.. once confirmed.

Y v need to give @ dis notation?

com.thoughtworks.selenium.*

here selenium is a package.

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by adityac on Thu Jan 31, 2013 4:07 pm

@ indicates tht it is annotation

com.thoughtworks.selenium.* is a package


adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by divya_agsrdk on Mon Feb 04, 2013 2:28 pm

where this package ll be?

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by adityac on Mon Feb 04, 2013 10:47 pm

in jar files

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by divya_agsrdk on Tue Feb 05, 2013 11:15 am

which jar files?

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by adityac on Tue Feb 05, 2013 11:29 am

u will import selenium-server-standalone-2.25.0.jar file into eclipse

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by divya_agsrdk on Wed Feb 06, 2013 1:15 pm

ya thx...

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by divya_agsrdk on Mon Feb 18, 2013 3:15 pm

In the above program, its like,,

public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}

here wt v call setUp() ? is it a method or function

divya_agsrdk
Professional
Professional

Posts : 93
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by adityac on Mon Feb 25, 2013 3:26 pm

setUp() is a method....

adityac
Professional
Professional

Posts : 101
Join date : 2013-01-17

Back to top Go down

Re: program in eclipse

Post by Sponsored content Today at 3:25 am


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