1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iMacro: How do I click this? Is this java or something?

Discussion in 'General Scripting Chat' started by hawkweb, Apr 5, 2013.

  1. hawkweb

    hawkweb Regular Member

    Joined:
    Aug 18, 2009
    Messages:
    375
    Likes Received:
    21
    Hi
    Been trying to figure what kind of button is this for days and imacro wont click it. Here is the code:
    HTML:
    <input id="action_50" class="boisTxt action" type="submit" value="save" name="action">
    When I hover over it, it does not show any link and does not even has a image but it looks like a button with rounded corners. I think it's jquery or ajax or something.
    If anyone with imacro knowledge knows this please help me identify this and provide code for imacro?

    Thanks
     
  2. Etchied

    Etchied Newbie

    Joined:
    Feb 23, 2013
    Messages:
    22
    Likes Received:
    9
    I've never touched iMacros, but that's not a normal link. It's the submit button for a standard HTML form. The actual link you're sending data to can be found in the form tag, this is how it usually looks:

    HTML:
    <form method='post' action='/data/is/send/here.php'>
    <input type='text' value='blahblah' name='somedata'/>
    <input id="action_50" class="boisTxt action" type="submit" value="save" name="action">
    </form>
    
    Pressing the submit button (which on your screen has the text "save") will submit the form data (input fields, in this case there's a text field with the name 'somedata' and the value of 'blahblah') to the file 'here.php' (found in a subdirectory /data/is/send/).

    So what you're looking for is to grab the action attribute from the form, that'll point you to the correct link.
     
  3. Aaric

    Aaric Jr. VIP Jr. VIP

    Joined:
    Mar 7, 2010
    Messages:
    1,838
    Likes Received:
    1,182
    Gender:
    Male
    Occupation:
    Reputation Adder
    Location:
    Vegas
    Try recording the click and check recorded macro.
     
  4. Gogol

    Gogol Jr. VIP Jr. VIP

    Joined:
    Sep 10, 2010
    Messages:
    3,476
    Likes Received:
    3,102
    Gender:
    Male
    Impossible to say without looking at the source code, but yes that is obviously a styled submit button. It can still work in other ways, if you use preventDefault() when the button is clicked. So mm it can be anything...