Re: [wtr-general] Re: Watir::Exception::UnknownObjectException: unable to locate element

2016-08-10 Thread Ajay Reddy
> click on your element. > > > On Wednesday, August 10, 2016 at 1:37:10 PM UTC-5, Ajay Reddy wrote: >> >> I have changed from gto to page_url and instead #on I am using #visit but >> I am getting same error. >> >> On Wednesday, August 10, 2016 at 12:

Re: [wtr-general] Re: Watir::Exception::UnknownObjectException: unable to locate element

2016-08-10 Thread Ajay Reddy
e #visit instead of #on > https://github.com/cheezy/page-object/wiki/Creating-and-using-page-objects > > On Wed, Aug 10, 2016 at 12:19 PM, Ajay Reddy > wrote: > >> Here is the data for xxx website and taking data from yaml file. >> >> class UserInfo >> inclu

[wtr-general] Re: Watir::Exception::UnknownObjectException: unable to locate element

2016-08-10 Thread Ajay Reddy
at 12:01:22 PM UTC-5, Titus Fortner wrote: > > Data is what is displayed by default when open a new browser. Your "Given I > am on xxx homepage" is not working as desired. > > On Wednesday, August 10, 2016 at 11:51:33 AM UTC-5, Ajay Reddy wrote: >> >> Hi All, &g

[wtr-general] Watir::Exception::UnknownObjectException: unable to locate element

2016-08-10 Thread Ajay Reddy
Hi All, I am using page factory pattern, 1. Here is My class Homepage:- class Homepage include PageObject include Configuration def open goto("url") end def sign_in @browser.element(css: 'div.links-static ul li.account div#login_us

[wtr-general] How to create excel report in cucumber project

2016-07-28 Thread Ajay Reddy
Hi All, I know how to create HTML reports, but I don't know how to create excel report. Does anyone know how to create the excel report. Thank You, Ajay. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http

[wtr-general] XLSX file format error: File reports/excel_result.xlsx not found (Zip::Error)

2016-07-17 Thread Ajay Reddy
Hi All, I am generating excel report. Here is my code: module WriteReport require 'spreadsheet' require 'rubyXL' require 'time' def self.get_blank_row workbook = RubyXL::Parser.parse($result_xl) worksheet = workbook['Test'] my_rows_indx = [] worksheet.each_with_index { |row, index

[wtr-general] Errno::ENOENT: No such file or directory - config\data/default.yml

2016-07-12 Thread Ajay Reddy
Hi All, Can any one help me with this issue. Thank You, Ajay. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com ---

[wtr-general] cannot load such file - LoadError

2016-07-11 Thread Ajay Reddy
Hello All, I am getting this error "cannot load such file -/pages/Config/data/data_form.yml (LoadError)", can any one fix this issue please. Here is my scenario: Scenario: Verify the xxx Given I am on xxx web page When I provide application information And I select xxx button And I cli

Re: [wtr-general] cannot load such file — Config/Data/data_form.yml (LoadError)

2016-07-11 Thread Ajay Reddy
able to require things relative to whatever 'root' > is. > > > -- > *From:* Ajay Reddy > > *To:* Watir General > > *Sent:* Monday, July 11, 2016 8:13 AM > *Subject:* [wtr-general] cannot load such file — > Config/Data/data_form.yml (LoadError

[wtr-general] cannot load such file — Config/Data/data_form.yml (LoadError)

2016-07-11 Thread Ajay Reddy
Hi All, I am getting this "cannot load such file — Config/Data/data_form.yml (LoadError)", I need your help to fix this issuse. require "./TestData" require 'yaml'class CardSubmission < Application include PageObject include DataMagic include TestData def initialize(browser) @brows

[wtr-general] cannot load such file — Config/Data/data_form.yml (LoadError)

2016-07-11 Thread Ajay Reddy
require "./TestData" require 'yaml'class CardSubmission < Application include PageObject include DataMagic include TestData def initialize(browser) @browser = browser end def submit_application(data = {}) DataMagic.load ("data_form.yml") populate_page_with data_for(:Auto

[wtr-general] Excel Report

2016-06-23 Thread Ajay Reddy
Hi All, How to generate the excel Report. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message