firewatir 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/MozillaBaseElement.rb +5 -0
  2. metadata +2 -2
@@ -505,6 +505,7 @@
505
505
  #puts "how is #{how} and what is #{what}"
506
506
  jssh_command = ""
507
507
  if(@container.class == FireWatir::Firefox)
508
+ # In firefox 3 if you write Frame Name then it will not show anything. So we add .toString function to every element.
508
509
  jssh_command = "var frameset = #{WINDOW_VAR}.frames;
509
510
  var elements_frames = new Array();
510
511
  for(var i = 0; i < frameset.length; i++)
@@ -512,7 +513,9 @@
512
513
  var frames = frameset[i].frames;
513
514
  for(var j = 0; j < frames.length; j++)
514
515
  {
516
+ frames[j].frameElement.toString = function() { return '[object HTMLFrameElement]'; };
515
517
  elements_frames.push(frames[j].frameElement);
518
+
516
519
  }
517
520
  }"
518
521
  else
@@ -926,6 +929,7 @@
926
929
  return true
927
930
  end
928
931
  end
932
+ alias exist? exists?
929
933
 
930
934
  #
931
935
  # Description:
@@ -937,6 +941,7 @@
937
941
  def text()
938
942
  assert_exists
939
943
 
944
+ #puts "element_type is #{element_type}"
940
945
  if(element_type == "HTMLFrameElement")
941
946
  jssh_socket.send("#{BODY_VAR}.textContent;\n", 0)
942
947
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firewatir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angrez Singh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-16 00:00:00 +01:00
12
+ date: 2008-08-15 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15