无法访问该网页.如果页面正在刷新,请等待直到页面刷新,然后对其执行操作. [英] The web page could not be accessed. If the page is refreshing, please wait until the page refreshes and then perform actions on it.

查看:219
本文介绍了无法访问该网页.如果页面正在刷新,请等待直到页面刷新,然后对其执行操作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多次运行一段代码会出现问题.

如果两次运行它都可以,但是第三次​​运行会中断,说明:
无法访问该网页.如果页面正在刷新,请等待页面刷新,然后对其执行操作."

参数会更改,但步骤不会更改.

使系统进入睡眠状态不起作用.每次重新排序都在3 rd 处中断.调整对象识别不会执行任何操作.

am having problems running a section of code multiple times.

If I run it 2 times it's fine, but a third time, it breaks stating:
"The web page could not be accessed. If the page is refreshing, please wait until the page refreshes and then perform actions on it."

The parameters change but the steps do not. 

Making the system sleep does not work.  Reordering breaks at the 3rd one every time.  Adjusting the object recognition does nothing.

span> [TestMethod]

span>公共无效审判(字符串Trial_column,字符串trial_Id,字符串trial_name)

span> {//从上下文菜单中,选择编辑CodedUITest";并选择任何选项以添加自动化代码.

span>//注意: 需要在独立式结构计算器-FSS中打开到着陆页

                                                // Note:  Needs to be opened to the Landing page in Free Standing Structural Calculator - FSS

span> string [] trialArray = new string [31];

span> int Row_from = 4; //开始收集Excel数据的行

                                                int Row_from = 4;   // what row to begin gathering the excel data

span> int Row_to = 30; //停止收集Excel数据的行

                                                int Row_to = 30;      // what row to stop gathering the excel data

span> int num_values = 27; //要从Excel工作表中获取的值数

                                                int num_values = 27;  // number of values to get from the excel sheet

span>//选择风压计算"单选按钮.

span> RecordedMethods.WindPressureCalc_select(this.TestContext);

span>//从excel页面读取并获取所需的输入

span> trialArray = _retrieve._ExcelParams(Trial_column,excelPath,trialArray,Row_from,Row_to,num_values,"WP");

span>//项目ID和名称

span> trialArray [30] = trial_Id;

span> trialArray [29] = trial_name;

span>//使用trialArray输入运行试验

span> RecordedMethods.WP_Trial(this.TestContext,trialArray);

span>//检查在输入页面上输入到输出页面的值,并检查其他输出值

来自Excel工作表的span>// 是正确的.

span>//注意: 将检查移到了自己的部分,以便于阅读

                                                // Note:  Moved checks to its own section for easier reading

span> checkResults_p1(trialArray);

span>//移至结果的下一页

span> RecordedMethods.WP_nextPage(this.TestContext);

span>//继续检查第二页上的值.

span> checkResults_p2(trialArray);

span>//关闭输出页面并返回到登录页面.

span> RecordedMethods.Close_backToLanding(this.TestContext);

span>}

span>//验证结果"输出页面上的结果是否正确– 1 st 页面

span> public void checkResults_p1(string [] trialArray)

span> {

第一次和第二次到达这里,它等待页面打开. 第三次,到达下一行时它就中断了. (等待结束后,系统等待仍会中断–页面已完全加载,但页面不存在)

The first and second times it gets to here, it waits for the page to open.  The third time, it breaks as soon as it hits this next line. ( system waits still break as soon as the wait is over – the page is fully loaded but it says that it is not there )

即使注释掉了此行,下一个在同一位置以相同的消息中断.

span>//验证ProjNumber.InnerText AreEqual

Assert.AreEqual (trialArray [30],UIMap.UIHttpiiseda01StructurWindow.UIHttpiiseda01StructurClient.UIReportFrame.UIHttpiiseda01StructurDocument.UIOReportDivPane.UIItemTable.UIOReportCellCell.UIItemTable.ProjNum.InnerText);

span>//验证ProjName.InnerText AreEqual

Assert.AreEqual (trialArray [29],UIMap.UIHttpiiseda01StructurWindow.UIHttpiiseda01StructurClient.UIReportFrame.UIHttpiiseda01StructurDocument.UIOReportDivPane.UIItemTable.UIOReportCellCell.UIItemTable1.ProjName.InnerText);

span>}

谢谢.

推荐答案

我遇到了同样的问题,有人可以帮忙吗?
I got the same problem, anybody can help?


这篇关于无法访问该网页.如果页面正在刷新,请等待直到页面刷新,然后对其执行操作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆