#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Automate a click


    Hi I am trying to automate a click on a webpage inside of a iFrame named (applicationsFrame0) with an id of "applicationsFrame0", inside this frame I am trying to click a link in a list that has a (<a title="EQUIP ALTRIGREEN" ) and a ( id="Citrix.MPS.App.jdo.EQUIP0020ALTRIGREEN" ).

    I've tried getElementById("Citrix.MPS.App.jdo.EQUIP0020ALTRIGREEN").click()
    but I get an AttributeError: 'NoneType' object has no attribute 'click'

    any help would be appreciated. Thanks
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,966
    Rep Power
    481
    There might be a function somewhere up the chain for which an intended
    return specific_object
    statement was forgotten and the function returned the default of None instead.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo