您的位置:首页 > 其它

Rational Functional Tester for firefox 可能的问题

2008-02-03 14:54 429 查看
1. firefox could not get object's classname property:[b]
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.

[/b]
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 {
....}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐