Getting a JavaScript Error when calling prompt method from page-object-gem -
Scenario: I'm on the frames page tested with prompt popups when I do a quick popup and "Jared GetoBero "syntax error: missing; Before the statement (Selenium :: WebDriver :: Error :: Javascript error) ./features/support/pages/frames_page.rb35:in_In_pro_value block './features/support/pages/frames_page.rb:34: `Prompt_value './features/step_definitions/web01_steps.rb35:in' In Block (2nd level) & lt; Top (required) & gt; './features/step_definitions/web01_steps.rb:34:in `/ ^ I quickly popup and" (. *?) "$ /' Features / web01.feature: 20: in when I pop up quickly and enter" Jared Gatorobee "" Then enter the message "Enter your name" from the signal and the default value "John Doe" from "Prospect". / features / support / pages / frames_page .rb
DEP prompt_view (value) in_frame (: id = & gt; 'frame_3') | frame | @prompt_response = prompt (value, frame) button_ element (: id = & gt; 'prompt_button',: frame = & Gt; frame) Click end end @prompt_response end ./ fe Atures / Step_definitions / web01_steps.rb
When (I / I do a prompt popup and enter "(. *?)" $ /) | Value_to_enter | On_page (framespages) | Page | @prompt_response = page.prompt_value (value_to_enter) and end
triggers an indication within a frame $ / do @ page.in_frame (: id = & gt; 'frame_3'). Frame | @msg = @ page.prompt ("Cheese", frame) Do @Page.button_lement (: id = & gt; 'prompt_button' ,: frame = & gt; frame). Click end-end It seems that you have the same logic in your steps and the tests work with the latest Firefox using both Selenium-WebDriver and Water-WebDriver.
Comments
Post a Comment