Sign in to follow this  
Followers 0
smellyfingers

Click on a button next to some text

1 post in this topic

#1 ·  Posted (edited)

 
post-69390-0-69003000-1369831175_thumb.p
 
Hi all, i have a problem clicking on a button that has no unique identifier, the only thing that can identify it is a text that comes before the button on the same horizontal line, there is several buttons, all the same name so im trying to figure out how the script would know wich button to press when text is found, here is some properties of the button and a text field.
 
 
document.all.data.contentWindow.document.forms.ServiceListForm.childNodes.item(6).childNodes.item(0).childNodes.item(6).childNodes.item(0).childNodes.item(0).childNodes.item(0).childNodes.item(0).childNodes.item(4)

<TD class=listRowTable width="20%" align=left>Pristillägg&nbsp; </TD>

document.all.data.contentWindow.document.forms.ServiceListForm.childNodes.item(6).childNodes.item(0).childNodes.item(6).childNodes.item(0).childNodes.item(0).childNodes.item(0).childNodes.item(0).childNodes.item(6).childNodes.item(0)

<BUTTON class=chooseButton>i</BUTTON>

It's the "i" i'm trying to click btw

Is it possible to use some kind of mousemove to text click and tab or a better way

Thanx in advance

post-69390-0-69003000-1369831175_thumb.p

Edited by smellyfingers

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0