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
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty program in eclipse

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?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

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
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

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?


avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Thu Jan 31, 2013 2:38 pm
DefaultSelenium selenium=new DefaultSelenium();
DefaultSelenium = class name
selenium=object...

Are u aware of java??
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

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.
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Thu Jan 31, 2013 4:07 pm
@ indicates tht it is annotation

com.thoughtworks.selenium.* is a package

avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Mon Feb 04, 2013 2:28 pm
where this package ll be?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Mon Feb 04, 2013 10:47 pm
in jar files
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Tue Feb 05, 2013 11:15 am
which jar files?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Tue Feb 05, 2013 11:29 am
u will import selenium-server-standalone-2.25.0.jar file into eclipse
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Wed Feb 06, 2013 1:15 pm
ya thx...
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

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
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

program in eclipse Empty Re: program in eclipse

Mon Feb 25, 2013 3:26 pm
setUp() is a method....
Sponsored content

program in eclipse Empty Re: program in eclipse

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