korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

get_popup_text function in Firewatir.rb doesnot reset the popuptext variable. #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ff.startClicker("ok", 1) # start the clicker
2. Click the button that creates the popup.
3. Call get_popup_text() # this returns the popup text but doesnot clear
the text even if the browser moves to a new page.

What is the expected output? What do you see instead?
get_popup_text() should return empty after it has been read once.

What version of the product are you using? On what operating system?
Firewatir 1.1, OS: WIN XP

Please provide any additional information below.
File Name: firewatir.rb
Function name: get_popup_text()

Line No: 721
Actual code seen:
# reset the variable
$jssh_socket.send("popuptexti = '';\n", 0)

Change the popuptexti to popuptext.
This should clear the popuptext variable.

Changed code:
# reset the variable
$jssh_socket.send("popuptext = '';\n", 0)

Thanks & regards,
Tony

Original issue reported on code.google.com by ynot...@gmail.com on 11 Feb 2008 at 11:50

GoogleCodeExporter commented 9 years ago
Sorry for the oversight. Thanks a lot for pointing that out.
Updated SVN.

Original comment by ang...@gmail.com on 12 Feb 2008 at 7:05