Issue Details (XML | Word | Printable)

Key: SEL-558
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: davidb
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Selenium

Can not call javascript functions from browserbot anymore

Created: 26/Jun/08 06:31 AM   Updated: 12/Oct/09 01:10 AM   Resolved: 19/Nov/08 10:08 AM
Return to search
Component/s: BrowserBot-IE
Affects Version/s: 1.0.1
Fix Version/s: 1.0

File Attachments: None
Image Attachments:

1. EMR500-0108.jpg
(133 kB)

2. selenium1b1.JPG
(111 kB)
Environment:
Win XP
Firefox
IDE


 Description  « Hide

In the latest version of Selenium 1b2 you can no longer call JavaScript APIs by calling this.browserbot.getCurrentWindow().javascriptfunctionOnThePage()

It was working in 1b1 and before. I have had a look through the commits logs and through the files and can't spot anything obvious with them.

This is a very important feature for me because it allows me to test rich text editors.



Sort Order: Ascending order - Click to sort in descending order

Haw-Bin Chai added a comment - 26/Jun/08 03:12 PM

Does "selenium.browserbot.etc" work? Referencing "this" might be the issue.




Haw-Bin Chai added a comment - 06/Jul/08 11:44 PM

Determined cause of issue, see http://clearspace.openqa.org/message/46135


Haw-Bin Chai added a comment - 19/Nov/08 10:08 AM

Should be fixed in r2255. I added a new getUserWindow() method to the browserbot, which should be used instead of getCurrentWindow() to retrieve the current window.


Agnes added a comment - 12/Oct/09 01:10 AM

Can this possibly affects Firefox 3? We have automated tests set up and we are seeing quite a few intermittent failures on "X" is undefined.