Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Selecting JTree items

View previous topic View next topic Go down

Selecting JTree items

Post by shutey on Wed Mar 26, 2014 3:51 pm

I'm after a little help with trying to get IDE to select changing JTree items within a content management system. 

The scenario; Register for a members area via a form, capture the information within the members section of the CMS. There are duplicate checking constraints on the information being passed through. 

Populating the form is fine, using a .js file to randomly generate First/ Last name information along with email address to avoid the duplicate checking each time the test runs. Navigation within the CMS is ok, but this is where i'm becoming a little stuck. 

Once you pass through the form in captures the information within a members area, with the section being a JTree. We have A-Z folders where the members emails are stored alphabetically ~ A(at)Test.(com) would fall within the A folder and X(at)Test.(com) would fall in the X folder. 

So, navigating to relevant folder each time isn't a problem as my randomly generated email address will always start with an 'X' so i know where they will be stored (within the X folder). However, i need selenium IDE to navigate to the relevant record based on the email address in order to validate the captured information matches those that have been passed through ~ this is where i'm having the issues. 

The email input ~ type | id=Email | javascript{"Q" + Math.floor(Math.random()*11111) + "(at)companyname.org.(com)";}
I then capture this generated email ~ storeText | id=Email | EmailAddress

Do some bits and pass through the form.

Within CMS my script looks something like:

Open | /members
Navigate to the members area and the relevant file i'm expecting the email address to appear under

When using a record already captured to either assert or verifyText IDE captures:

assertText | //li[@id='Q1025(at)companyname.org.(com)']/a/div | Q1025(at)companyname.org.(com)

Or to select:

click | //li[@id='Q1025(at)companyname.(com). com']/a/div | Q1025(at)companyname.org.(com)

Now if this email address is randomly generated, yet will always have 'Q' at the start and then '(at)companyname.org.(com)' how can I make IDE select the record i want based on the email passed through in the registration steps?? I've tried putting in ${EmailAddress} to my steps, but not picking it up....

shutey

Posts : 2
Join date : 2014-03-24

Back to top Go down

Re: Selecting JTree items

Post by ccox on Thu Mar 27, 2014 10:02 am

what does storeText return? Have you tried storeValue?

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

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