Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Help to click a link not having id

View previous topic View next topic Go down

Help to click a link not having id

Post by Bhuvaneswari on Wed Jan 11, 2012 8:07 pm

Experts,

I have a link like this, Add
Recording doesn't capture the script for clicking this link. //a[text()=Add] doesn't help. Please help me to find an identifier to click this link.

Thanks,
Bhuvana

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: Help to click a link not having id

Post by faramka on Wed Jan 11, 2012 9:01 pm

Try:
Code:
//a[text()='Add']

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Help to click a link not having id

Post by Bhuvaneswari on Mon Jan 16, 2012 11:33 am

Thanks, but it did not work for me.

It's on a new window, where I opened the new window and typed the search text that I require. Upon typing the tree gets expanded and shows the searching item(on new window). Along with the search item I get an Add(link) option. Using this syntax not able to click the Add link.

To note, all the nodes under the tree has the Add(link) option. Please throw some light...

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: Help to click a link not having id

Post by faramka on Mon Jan 16, 2012 2:32 pm

If you have got more than one opened window in your app, you should choose an active window by using proper method (like selectWindow()).

faramka
Professional
Professional

Posts : 143
Join date : 2011-09-15
Location : Poland

Back to top Go down

Re: Help to click a link not having id

Post by Bhuvaneswari on Mon Jan 16, 2012 3:58 pm

This is how the flow goes,
1. Open a new window called add_application
2. Type an item in the search field (in the add_application window)
3. Upon typing the parent node opens to show the search item which has a link named 'Add' (note: all the child nodes are associated with a link named 'Add'.

Here the step 2 works without having to do a selectWindow(windowID) and step 3 fails to work even with the selectWindow code. Anyhow selectWindow(add_application) does not seem to work for me.

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: Help to click a link not having id

Post by Sponsored content Today at 5:06 pm


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