locked
How to access Javascript/Ajax Elements using Powershell RRS feed

  • Question

  • hi Guys,

    I am on middle of automating of Web accessing a bug Tracking tool to get data in it.

    Below which my powershell tried to access javascript element. I am able to select "has values", but not loading like below screenshot and not getting that scrollable checkbox pane

    $dropdown = $ie.Document.getElementById("expression44")
    ($dropdown | where {$_.innerHTML -eq "has values"}).Selected = $true
    Below are my source code elements which i need to access similar like below screenshots.
    <td class="label">
                                <span>Logged By</span>
                                <input name="columns:4:visible" checked="checked" type="checkbox"/>
                            </td>                            
                            <td class="alt"><select name="columns:4:expression" id="expression44" onChange="wicketShow('expression44--ajax-indicator');var wcall=wicketAjaxPost('?wicket:interface=:3:panel:form:columns:4:expression::IBehaviorListener:1:', wicketSerialize(Wicket.$('expression44')),function(){;wicketHide('expression44--ajax-indicator');}.bind(this),function() { ;wicketHide('expression44--ajax-indicator');}.bind(this), function() {return Wicket.$('expression44') != null;}.bind(this));">
    <option value=""></option>
    <option value="in">has values</option>
    </select><span style="display:none;" class="wicket-ajax-indicator" id="expression44--ajax-indicator"><img src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif" alt=""/></span></td>
                            <td id="fragParent45"></td>
    
    
    
    
    <span name="columns:4:fragParent:values" multiple="multiple" size="8"><div class="multiselect scrollable"><input name="columns:4:fragParent:values" value="1" id="columns:4:fragParent:values_1" type="checkbox"><label for="columns:4:fragParent:values_1">Admin</label>

    I need to select few checkbox. Kindly help on this how to achieve these Javascript and Ajax elements using powershell

    Saturday, May 13, 2017 3:42 AM

All replies

  • You will not be able to screenscrape most Ajax sites.

    \_(ツ)_/

    • Proposed as answer by Hello_2018 Monday, June 5, 2017 4:49 AM
    Saturday, May 13, 2017 5:46 AM