Sign in to follow this  
Followers 0
Arclite86

How to click multiple buttons with same description

5 posts in this topic

this is the code they all have in common

<span class="button-text follow-text">
     <span class="Icon Icon--follow"></span> Volgen
    
  </span>

how can I click all the these buttons at the same time 

(browser: firefox and internet explorer)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You will have to click on then one at a time.

the "_FFXPath" doesn't seem to work on span am i right?

I tried this

$oButton1 = _FFXPath("//span [@class='button-text follow-text']")
_FFClick($oButton1) 

i did found another similar button  on a other website:

<div class="x-button-litebutton-wrapper x-btn action_button inline_block x-component x-btn-text-icon 
" aria-describedby="x-auto-82" id="x-auto-293" tabindex="0" style="width: 40px;">Follow<img
 onload="this.__gwtLastUnhandledEvent=&quot;load&quot;;" src="http://tweepi.com/js/tweepigxt/clear.cache.gif" 
style="width: 16px; height: 16px; background-image: url(http://tweepi.com/js/tweepigxt/67791A54F68E6C387B9AEF4E96FFB252.cache.png); position: absolute; left: -1px; top: 3px; background-position: -162px 0px; background-repeat:
 no-repeat no-repeat;" border="0" role="presentation" class=" x-btn-image"></div> 

But i also could not get this too work, maybe im doing something wrong or its jut not possible. by the way its a push-in button

so thought of clicking the button by area or by lengt and width, is that possible and which function do I have to use for that?

some extra info about the button hope somebody can help me with this:

<div class="x-button-litebutton-wrapper x-btn action_button inline_block x-component x-btn-text-icon 
" aria-describedby="x-auto-82" id="x-auto-293" tabindex="0" style="width: 40px;">Follow<img
 onload="this.__gwtLastUnhandledEvent=&quot;load&quot;;" src="http://tweepi.com/js/tweepigxt/clear.cache.gif" 
style="width: 16px; height: 16px; background-image: url(http://tweepi.com/js/tweepigxt/67791A54F68E6C387B9AEF4E96FFB252.cache.png); position: absolute; left: -1px; top: 3px; background-position: -162px 0px; background-repeat:
 no-repeat no-repeat;" border="0" role="presentation" class=" x-btn-image"></div>

 <span class="button-text follow-text">
     <span class="Icon Icon--follow"></span> Volgen
    
  </span>

element.style {
}
.follow-button .Icon {
color: inherit;
font-size: 18px;
line-height: 17px;
padding-right: 3px;
position: relative;
top: 3px;
color: #55acee;
}
.btn .Icon {
background: transparent;
}
.Icon--follow, .Icon--follower, .Icon--message {
color: #5ba2df;
}
.Icon {
background: transparent;
font-style: normal;
display: inline-block;
vertical-align: baseline;
}
Pseudo ::before element
.Icon--follow:before {
content: "\f175";
}
.Icon:before {
font-family: "rosettaicons";
}
.Icon--logo:before, .Icon--follow:before, .Icon--follower:before {
content: "\f000";
}
.Icon:before {
display: block;
font-family: "twittericons";
font-weight: normal;
font-style: normal;
text-align: center;
-webkit-font-smoothing: antialiased;
}
Inherited from span.button-text.follow-text
.email-follow-state-button .button-text, .follow-button .button-text {
text-align: center;
}
Inherited from button.user-actions-follow-button.js-follow-btn.follow-button.btn
.btn:hover, .follow-combo.open .btn-user-actions, .dropdown.open .user-dropdown {
color: #333;
}
.follow-button {
color: #292f33;
}
.btn {
color: #66757f;
cursor: pointer;
font-size: 14px;
font-weight: bold;
line-height: normal;
}
button, html input[type="button"], input[type="reset"], input[type="submit"] {
cursor: pointer;
}
button, select {
text-transform: none;
}
button, input, optgroup, select, textarea {
color: inherit;
font: inherit;
}
user agent stylesheetinput[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
text-align: center;
cursor: default;
color: buttontext;
padding: 2px 6px 3px;
border: 2px outset buttonface;
}
user agent stylesheetinput, textarea, keygen, select, button, isindex {
margin: 0em;
font: -webkit-small-control;
color: initial;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
text-align: start;
}
Inherited from li#stream-item-user-251837387.js-stream-item.stream-item
.in-reply-to>ol>li, li.stream-item, .tweets-wrapper li, .recent-tweets li {
line-height: inherit;
}
.in-reply-to>ol>li, li.stream-item, .tweets-wrapper li, .recent-tweets li {
line-height: inherit;
}
ol>li {
line-height: 20px;
}
user agent stylesheetli {
text-align: -webkit-match-parent;
}
Inherited from ol#stream-items-id.stream-items.js-navigable-stream
.stream, .stream-items {
list-style: none;
}
ol {
list-style: decimal;
}
user agent stylesheetol {
list-style-type: decimal;
}
Inherited from div.stream.profile-stream
.stream, .stream-items {
list-style: none;
}
Inherited from body.t1.logged-in.user-style-ifollowback0522.ms-windows.rosetta.western.nl.enhanced-mini-profile.supports-drag-and-drop
body.ms-windows {
font-family: Arial,sans-serif;
}
body {
color: #292f33;
font-family: "Helvetica Neue",Arial,sans-serif;
font-size: 14px;
line-height: 18px;
}
Inherited from html
html {
font-family: sans-serif;
Edited by Arclite86

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

When searching by class in an xpath, it's actually className

"//span[@className='button-text follow-text']"

Not asked, but others follow some kind of deal...like style is really style.csstext

Simple google search in the future if the xpath is legit, but not working.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

When searching by class in an xpath, it's actually className

"//span[@className='button-text follow-text']"

Not asked, but others follow some kind of deal...like style is really style.csstext

Simple google search in the future if the xpath is legit, but not working.

I tried to use the code:

"//span[@className='button-text follow-text']"

like you said but it didn't work now i am trying to find it with the Id

I got this:

$oButton2 = _FFXPath("//div [@id='x-auto-1475']")
_FFClick($oButton2)

when i try to run it it says:

__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("//div [@id='x-auto-1475']",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};
_FFClick ==> No match: $sElement: FFau3.xpath
__FFRecv: 
__FFSend: try{FFau3.simulateEvent(FFau3.xpath,'MouseEvents','click');}catch(e){'_FFCmd_Err';};
__FFRecv: -3
_FFClick ==> No match: $sElement: FFau3.xpath

and this is the button i try to get:

<div tabindex="0" class="x-button-litebutton-wrapper x-btn action_button inline_block x-component x-btn-text-icon " id="x-auto-148" aria-describedby="x-auto-82" style="width: 40px;">Follow<img class=" x-btn-image" role="presentation" style='background: url("http://tweepi.com/js/tweepigxt/67791A54F68E6C387B9AEF4E96FFB252.cache.png") no-repeat -162px 0px; left: -1px; top: 3px; width: 16px; height: 16px; position: absolute;' onload='this.__gwtLastUnhandledEvent="load";' src="http://tweepi.com/js/tweepigxt/clear.cache.gif" border="0"></div> 

what am I doing wrong???

Edited by Arclite86

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