I use the water in the RadRails IDE. I create a class that checks that some text exists on my web page:
class Text def initialize (text, object) @text = text @object = object if $ ie.contains_text (@ Text) puts "test for" + @object + "fail" $ ie.link (: text => / exception: /) h = $ ie.link (: text = & gt; / exception: / ) Puts r.addtoReport (Test Report, "Check" + @Object, "Fillad", Htext) and puts ("+" to "+" test + "pass") R.Destort Report (Test Report, " Check "+ @Object," Passed ") But when I code in my test If I try to execute, I get the following error -
BPM / Company. RB: 79: BPM / Company RB: 79: In 'BPM / Company. RB: 38: In 'Start' `& lt; Main & gt; I call the square with this command - Text.new ("menu", "login") / Pre> Change in code -
def initialize (text, object, ie) @text = text @object = object @ ie = if if @ ie.contains_text (@text) "Test for" + @object + puts "unsuccessful" @ ie.link (: text = & gt; / exception: /) I call the square with this command - / P>
Text_pos.new ("Terms", "Login", that is, i.e.) Before classifying it, it is started ie = Water :: IE New
Where is the $ coming from? It looks like you did not start:
i.e. = water :: IE New
Comments
Post a Comment