Using vba to automate clicking button on website -


i trying use vba navigate website, login , make selection in dropdown box. stuck on making selection in drop down box. view dropdown must click icon button , click selection export csv option. believe icon button called rallybutton-1175, dropdown menu appears rallymenu-1225 , option select in dropdown menuitem-1227. page complex , not have simple refernce button submit button..

i have tried several things click these "buttons"..

  doc.getelementbyid("rallymenu-1225").selectedindex=1   doc.getelementbyid("rallymenu-1225").fireevent("onchange") 

and

  call objie.document.parentwindow.execscript("menduitem-1227", "javascript").click 

and

      .document      ' select action menu        set dropdownmenu = .getelementsbyid("rallymenu-1225")       set dropdownmenu(1) = "menuitem-1227"              end 

and

      call objie.document.parentwindow.execscript("menduitem-1219", "javascript").click 

and

             'click action menu icon             set htmldoc = .document             set htmlcoll = htmldoc.getelementbyid("rallybutton-1175-btniconel")             while htmldoc.readystate <> "complete": doevents: loop                 each htmlinput in htmlcoll                     if trim(htmlinput.id) = "rallybutton-1175-btniconel"                         htmlinput.click                         exit                     end if                 next htmlinput 

the following code can share...

   <div id="rallymenu-1225" class="x4-panel rally-menu no-icon x4-layer x4-panel-default x4-menu x4-menu-plain x4-border-box" style="width: 148px; height: 73px; right: auto; left: 1090px; top: 148px; z-index: 19001;"   tabindex="-1">    <div id="rallymenu-1225-body" class="x4-panel-body x4-menu-body x4-unselectable x4-panel-body-default x4-box-layout-ct x4-panel-body-default" role="presentation" style="width: 148px; height: 73px; left: 0px; top: 0px;">  <div class="x4-box-inner x4-box-scroller-top x4-box-scroller-plain" role="presentation">  <div id="rallymenu-1225-before-scroller" class="x4-box-scroller x4-menu-scroll-top" style="display:none" role="presentation"></div> <div id="rallymenu-1225-innerct" class="x4-box-inner x4-vertical-box-overflow-  body" role="presentation" style="height: 73px; width: 148px;"> <div id="x4-gen1922" class="x4-menu-icon-separator" role="presentation"> </div> <div id="rallymenu-1225-targetel" class="x4-box-target" role="presentation"   style="width: 148px;"> <div id="menuitem-1226" class="x4-component x4-box-item x4-component-default x4-    menu-item" style="right: auto; left: 0px; top: 0px; margin: 0px;"> <div id="menuitem-1227" class="x4-component x4-box-item x4-component-default x4-   menu-item" style="right: auto; left: 0px; top: 25px; margin: 0px; width:   148px;"> <a id="menuitem-1227-itemel" class="x4-menu-item-link " unselectable="on" hidefocus="true" role="presentation" href="#"> <span id="menuitem-1227-textel" class="x4-menu-item-text" unselectable="on">export csv...</span> 

i've posted question here...http://www.ozgrid.com/forum/showthread.php?t=195757

thank you!


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -