Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0013517 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
feature request | [Openbravo ERP] B. User interface | minor | random | 2010-06-03 20:30 | 2010-06-03 20:30 | |||||||
Reporter | elopio | View Status | public | |||||||||
Assigned To | dbaz | |||||||||||
Priority | urgent | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | pi | SCM revision | ||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0013517: Selenium requires an additional openWindow command to notice popups opened from the menu. | |||||||||||
Description | This is something to be added in the wishlist to facilitated integration tests with selenium. The popups opened from the menu (Financial>Accounting>Transactions>Reset accounting, for example), are not noticed by selenium. So, the function selenium.waitForPopUp(POPUP_NAME, PAGE_LOAD_TIMEOUT); will fail with a time out. There exists a workaround as it is explained in the API of the openWindow command: This command can also be a useful workaround for bug SEL-339. In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example). In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using an empty (blank) url, like this: openWindow("", "myFunnyWindow"). So, we can select those popups calling the openWindow function. However this has proven to be unreliable, as sometimes the popup is not recognized even after calling openWindow. This behaviour is random, and happens just a few times. As explained in http://jira.openqa.org/browse/SEL-339 [^] the problem is probably caused by opening the popup before the onload function finishes. If this is the case in openbravo, then the feature request is to explore the possibility of opening this popups after the onload function so selenium can manipulate without workarounds. If this is not the case, the please help me to spot the cause and look for a solution. I don't know how much work would this require, or if it's even possible. But I'm openning this issue to discuss about it. | |||||||||||
Steps To Reproduce | Log in to openbravo and select a menu popup with selenium ide. For example, this will fail: <tr> <td>click</td> <td>//tr[4]/td/table/tbody/tr[2]/td/table/tbody/tr[5]/td/table/tbody/tr/td[2]</td> <td></td> </tr> <tr> <td>waitForPopUp</td> <td>BUTTON</td> <td>30000</td> </tr> Before the wait for waitForPopUp, and openWindow("", "BUTTON") is required. | |||||||||||
Proposed Solution | Open the popups in a way that's easy for selenium. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Issue History | |||
Date Modified | Username | Field | Change |
2010-06-03 20:30 | elopio | New Issue | |
2010-06-03 20:30 | elopio | Assigned To | => dbaz |
Copyright © 2000 - 2009 MantisBT Group |