Help with pop ups

21 views
Skip to first unread message

Irfan Arif

unread,
Nov 28, 2015, 2:13:56 PM11/28/15
to TestWise
Hi,

I am fairly new to all this

I am starting of by trying to use the Testwise recorder so i can get the basics. I am trying to automate the store.demoqa.com ecommerce website.

Errors pasted below and code is from the testwise recorder. I get a pop up with two buttons which say continue shopping and go to checkout. Can't get past this.

I am using the selenuim ruby webdriver binding. Any help highly appreciated.




25: driver.find_element(:link_text, "iPhone 5").click
 26: driver.find_element(:xpath,"//input[@value='Add To Cart']").click
 27: driver.find_element(:link_text, "Go to Checkout").click
Error
Unable to locate element: {"method":"link text","selector":"Go to Checkout"}[remote server] file:///C:/Users/arifi/AppData/Local/Temp/webdriver-profile20151128-11404-1ti3uld/extensions/fxdr...@googlecode.com/components/driver-component.js:10271:in `FirefoxDriver.prototype.findElementInternal_'
[remote server] file:///C:/Users/arifi/AppData/Local/Temp/webdriver-profile20151128-11404-1ti3uld/extensions/fxdr...@googlecode.com/components/driver-component.js:10280:in `FirefoxDriver.prototype.findElement'
[remote server] file:///C:/Users/arifi/AppData/Local/Temp/webdriver-profile20151128-11404-1ti3uld/extensions/fxdr...@googlecode.com/components/command-processor.js:12274:in `DelayedCommand.prototype.executeInternal_/h'
[remote server] file:///C:/Users/arifi/AppData/Local/Temp/webdriver-profile20151128-11404-1ti3uld/extensions/fxdr...@googlecode.com/components/command-processor.js:12279:in `DelayedCommand.prototype.executeInternal_'
[remote server] file:///C:/Users/arifi/AppData/Local/Temp/webdriver-profile20151128-11404-1ti3uld/extensions/fxdr...@googlecode.com/components/command-processor.js:12221:in `DelayedCommand.prototype.execute/<'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/response.rb:15:in `initialize'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/common.rb:59:in `new'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/common.rb:59:in `create_response'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/default.rb:66:in `request'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/bridge.rb:640:in `raw_execute'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/bridge.rb:618:in `execute'
c:/agileway/TestWise/vendor/source/selenium-webdriver-2.45.0/lib/selenium/webdriver/remote/bridge.rb:586:in `find_element_by'
c:/agileway/TestWise/lib/extension/selenium_webdriver_extension.rb:34:in `find_element'
c:/agileway/TestWise/lib/extension/selenium_webdriver_extension.rb:13:in `perform_operation'
c:/agileway/TestWise/lib/extension/selenium_webdriver_extension.rb:27:in `find_element'
C:/testProjects/Practicalwebautomation/selenium-recipes-m-source/selenium-recipes-source/spec/irf_spec.rb:27
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in `load'
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in `load_spec_files'
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in `each'
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in `load_spec_files'
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:97:in `setup'
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:85:in `run'
c:/agileway/TestWise/vendor/bundle/ruby/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:70:in `run'
c:/agileway/TestWise/lib/testwise/rspec/rspec_executor.rb:267:in `run_spec_via_druby'
c:/agileway/TestWise/lib/testwise/rspec/rspec_executor.rb:122:in `invoke_rspec'
c:/agileway/TestWise/lib/testwise/rspec/rspec_executor.rb:109:in `initialize'
c:/agileway/TestWise/lib/testwise/rspec/rspec_executor.rb:109:in `new'
c:/agileway/TestWise/lib/testwise/rspec/rspec_executor.rb:109:in `invoke_rspec'
c:/agileway/TestWise/lib/testwise/controllers/testwise_main_controller.rb:314:in `run_spec'
c:/agileway/TestWise/lib/common/base_main_controller.rb:476:in `on_run_current_spec_file'
c:/agileway/TestWise/lib/common/base_main_controller.rb:458:in `on_run_spec'
c:/agileway/TestWise/lib/testwise/views/testwise_main_frame.rb:596:in `on_tool_click'
c:/agileway/TestWise/lib/common/base_main_frame.rb:489:in `setup_toolbar_events'
c:/agileway/TestWise/lib/testwise/app.rb:509:in `call'
c:/agileway/TestWise/lib/testwise/app.rb:509:in `process_event'
c:/agileway/TestWise/lib/testwise/app.rb:509:in `on_run'
c:/agileway/TestWise/lib/testwise/app.rb:509:in `main_
Reply all
Reply to author
Forward
0 new messages