Rational Functional Tester for firefox 可能的问题

  1. firefox could not get object's classname property:

4. firefox can remember those values in text fields.

LCCAddressBookTasks.java

// ivan change for firefox: these values will display when typing them,
// the under text field will be hidden by these values.

DWALiteNavigation.java:
// ivan change for firefox
// String sClass=switcher.getSelectedEditedMark().getProperty("className").toString();
String sClass=switcher.getSelectedEditedMark().getProperty("class").toString();

2. firefox could not get some object's ".text" property:

DWALiteNavigation.java:
// ivan change
// String sText = switcher.getHomeViewTab().getProperty(".text").toString();
String sText = "";
if (VisualReporter.gsVisualReporterTestBrowser.equalsIgnoreCase(VisualReporter.gsMozillaFirefox))
      sText = switcher.getSelectedTabInner().getProperty("value").toString();
else
      sText = switcher.getHomeViewTab().getProperty(".text").toString();

3. firefox status is still running when window is opened or tab is opened:

DWALiteMailTasks.java
// ivan change for firefox: tab is opened, but the status is still runnning.
// script will block by: browser_htmlBrowser().waitForExistence
// solution think: when click home tab(mail, contact) will make firefox status is back to complete.
// 1. get all tabs before the operations will be clicked, that will cause firefox alwarys run.
// 2. run those operations
// 3. click home tab.
// 4. get current all tabs, in order click them. the lastest tab will be selected tab.
// TestObject tcActiveForm = switcher.getSelectedView();
// liteMail.getSubject_Edit(tcActiveForm).setText(sSubject);
// liteMail.getRichTextEditorBody(tcActiveForm).setText(sMessage);
// liteMail.getTo(tcActiveForm).setText(sTO);
if (VisualReporter.gsVisualReporterTestBrowser.equalsIgnoreCase(VisualReporter.gsMozillaFirefox)) {
    TestObject tos[] = switcher.getAllViewTabs();
    TestObject tcActiveForm = switcher.getSelectedView();
    liteMail.getSubject_Edit(tcActiveForm).setText(sSubject);
    liteMail.getRichTextEditorBody(tcActiveForm).setText(sMessage);
    liteMail.getTo(tcActiveForm).setText(sTO);
    Webfuncs.selectLink(new WLink(tos[0]));
    TestObject tos2[] = switcher.getAllViewTabs();
    for(int i=1; i<tos2.length; i++)
         Webfuncs.selectLink(new WLink(tos2[i]));
}
else {
   ....}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值