Double Click, or extract Option Value

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
seandamnit
Posts: 18
Joined: Tue Jul 26, 2011 10:08 pm

Double Click, or extract Option Value

Post by seandamnit » Wed Aug 29, 2012 11:27 pm

Hello,

Having a problem that I could use a creative solution for:

I have a SELECT list with a dozen or so phone numbers, and I need to double click each one of those numbers to get to the info I need...but double click apparently doesn't play nice with iMacros for IE.

So my next thought was to extract the phone number value and put it in to the URL, as that will also get me to the info I need. The phone number text in this list is formatted as: "(555)123-4567", but the URL calls for no formatting, IE: "5551234567", so that doesn't work. However the OPTION VALUE tag in the HTML does have the number listed with no formatting. If I could figure out a way to extract that, then I can place it in the URL, but I'm not sure how to do that.

Here's a chunk of the HTML code I'm working with:

Code: Select all

<form name="ResultsForm" method="post">
	<select name="handset_list" size="10" class="selectBoxnew" ondblclick="gotoHandset(this.form.handset_list,'123456789')" frameBorder="no" >
                    
	<option value="5551234567">(555)123-4567&nbsp;&nbsp;</option>
	<option value="5559876543">(555)987-6543&nbsp;&nbsp;</option>
        ... 
     
...and to reiterate, given the HTML code
<option value="5551234567">(555)123-4567&nbsp;&nbsp;</option>
I'd like to find a way to extract 5551234567 and only 5551234567

Any help is much appreciated!
seandamnit
Posts: 18
Joined: Tue Jul 26, 2011 10:08 pm

Re: Double Click, or extract Option Value

Post by seandamnit » Wed Oct 31, 2012 9:25 pm

gonna give this a bump
User avatar
nileearls
Posts: 14
Joined: Wed May 09, 2012 6:53 pm
Location: fort worth, texas

Re: Double Click, or extract Option Value

Post by nileearls » Thu Nov 01, 2012 3:22 pm

WHAT SITE IS IT FOR?
facebook.com/teaamfollowback
Post Reply