Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer PowerShell-IE对象,设置值时出错_Internet Explorer_Powershell - Fatal编程技术网

Internet explorer PowerShell-IE对象,设置值时出错

Internet explorer PowerShell-IE对象,设置值时出错,internet-explorer,powershell,Internet Explorer,Powershell,我有一个简单的问题和答案,来源如下: <label for="question1" data-role="question-label"> 1. What&#39;s going well? Any wins (big or little) this week? </label> <div class="row answer-list"> <div class="col-xs-12 col-sm-12">

我有一个简单的问题和答案,来源如下:

  <label for="question1" data-role="question-label">
    1. What&#39;s going well? Any wins (big or little) this week?
</label>
<div class="row answer-list">
    <div class="col-xs-12 col-sm-12">



        <div class="row" data-role="answer-box-item">
            <div class="col-xs-12 col-sm-9" data-role="answer-box-content-wrapper">
                <span class="edit-textile-notifications">
                    <span class="glyphicon glyphicon-ok ok-status"></span>
                    <span class="not-sent-answer hidden" data-style="zoom-out">not sent</span>
                </span>
                <p type="text" class="edit-textile form-control input-sm answer-box-content" placeholder="create new answer" data-answer="true" data-question-id="1" data-role="new-answer-form"></p>

            </div>
            <div class="col-xs-12 col-sm-3 answer-actions-wrapper" style="display: none;">
                <div class="btn-group btn-group-sm answer-actions" >
                    <button type="button" class="btn btn-default answer-delete ladda-button" title="remove answer" data-style="zoom-out">
                        <span class="ladda-label">
                            <span class="glyphicon glyphicon-remove"></span>
                        </span>
                    </button>

请你看一下,检查一下我做错了什么,并更正我的代码。我不是高端powershell的家伙:

在尝试获取元素之前,您应该添加这一行,以确保数据已完全加载到$ie下方。导航:

while($ie.ReadyState -ne 4) {start-sleep -m 100}  
这对我来说很有用:while$ie.Busy{start sleep-m 100}
while($ie.ReadyState -ne 4) {start-sleep -m 100}