Rational Functional Tester for firefox 可能的问题

来源:互联网 发布:51系列单片机 编辑:程序博客网 时间:2024/05/01 04:55
 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 {
   ....}

原创粉丝点击