Deprecation Warning when using nested elements pattern from Documentation

ساخت وبلاگ

Vote count: 0

Following the example on the wiki for finding nested elements (https://github.com/cheezy/page-object/wiki/Nested-Elements), I was able to find items in a modal.

The problem is, i need to select them by index number, is there a way to do with this without using the deprecated functionality that passes the functionality to the underlying driver?

Current code is as follows.

 div(:add_line_modal, :id => 'add-line-modal') select(:add_line_service_select) do |page| page.add_line_modal_element.select(:index => 0) end

Throws this

*** DEPRECATION WARNING
*** You are calling a method named select at %PROJECTDIRECTORY%
*** This method does not exist in page-object so it is being passed to the driver.
*** This feature will be removed in the near future.
*** Please change your code to call the correct page-object method.
*** If you are using functionality that does not exist in page-object please request it be added.
asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 267 تاريخ : سه شنبه 12 مرداد 1395 ساعت: 0:26