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

Descriptivce Programming(Similar to VBS in QTP) in webdriver.

View previous topic View next topic Go down

Descriptivce Programming(Similar to VBS in QTP) in webdriver.

Post by TurtleRock on Mon Jul 09, 2012 7:47 pm

Is it possible to write descriptivce programming(Similar to VBS in QTP) in webdriver.

TurtleRock

Posts : 8
Join date : 2012-05-16

Back to top Go down

Re: Descriptivce Programming(Similar to VBS in QTP) in webdriver.

Post by tarun3kumar on Tue Jul 10, 2012 12:54 pm

You in fact write descriptive programming with wrapping your common code. There is no QTP kind of object repo in Selenium

_________________
Thanks
Tarun K
Free Selenium Training

tarun3kumar
Master
Master

Posts : 186
Join date : 2012-02-14

http://seleniumtests.com

Back to top Go down

Re: Descriptivce Programming(Similar to VBS in QTP) in webdriver.

Post by TurtleRock on Wed Jul 11, 2012 6:54 pm

Yes that is correct, we dont have any Object repo in selenium. But what i need to know is can we write a set of code like in QTP(VBS) to navigate through all the TextBoxes availabel on page, chech property of all and select the appropriate one for entering values in it.

VBS Code for example:

set odesc =Descripton.create()

odesc("class").value ="TextBox"

set obj = Browser("Google").childobjects(odesc)

Can we write similar kind of coding in selenium web driver.

TurtleRock

Posts : 8
Join date : 2012-05-16

Back to top Go down

Re: Descriptivce Programming(Similar to VBS in QTP) in webdriver.

Post by tarun3kumar on Thu Jul 12, 2012 12:24 pm

indeed you can by collecting all Web Elelments in a java (or C#, php, python etc ) collection and iterating through it -

Code:
List<WebElement>checkboxes = driver.findElements(By.id("id"));
for(WebElement checkbox:checkboxes) {
    checkbox.click()
    // and do some thing more with check box element.
}

Does this help?

_________________
Thanks
Tarun K
Free Selenium Training

tarun3kumar
Master
Master

Posts : 186
Join date : 2012-02-14

http://seleniumtests.com

Back to top Go down

Re: Descriptivce Programming(Similar to VBS in QTP) in webdriver.

Post by Sponsored content Today at 11:56 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