-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 2.1.1 killed appium? #419
Comments
I will be looking into this tomorrow.
…Sent from my iPhone
On Mar 14, 2017, at 8:41 AM, eskignax ***@***.***> wrote:
Hello,
I have a project that test mobile app with Appium and page-object. Until the version 2.1.1 of page-object, everything was fine we just use that code to make it works together:
env.rb:
$browser = Appium::Driver.new(desired_caps).start_driver
hook.rb:
Before do @browser = $browser end
But with the version 2.1.1 the trick doesn't work anymore and now methods are not implemented:
log:
Selenium::WebDriver::Error::UnknownError: Method has not yet been implemented
(eval):1:in `process_watir_call'
./lib/pages/search_job_page.rb:9:in `search'
./features/step_definitions/search_steps.rb.rb:2:in `/^I make a dummy search$/'
./features/dummy_search.feature:5:in `When I make a dummy search'
class:
class SearchJobPage
include PageObject
text_field :what, id: 'what_input'
text_field :where, id: 'where_input'
button :job_search, xpath: '(//android.widget.Button)[0]'
def search(data={})
self.what= 'dummy'
self.where= 'search'
job_search
end
end
Questions:
Is this happen because of the drop of selenium-driver or there is a real bug behind ?
How to avoid this error?
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I wrote a very simple example this morning that is working just fine with the latest page-object. Can you provide more details about the issue you are having - what it is trying to do when it fails? Here is the code from my example:
require 'spec_helper'
require 'appium_lib'
class GooglePage
include PageObject
end
describe "Using Appium with PageObject" do
it 'should work' do
caps = {}
caps['appiumVersion'] = '1.6.3'
caps['deviceName'] = 'iPhone Simulator'
caps['deviceOrientation'] = 'portrait'
caps['platformVersion'] = '10.2'
caps['platformName'] = 'iOS'
caps['browserName'] = 'Safari'
browser = Appium::Driver.new({caps: caps}).start_driver
page = GooglePage.new(browser)
page.navigate_to('http://google.com')
end
end
… On Mar 14, 2017, at 7:41 AM, eskignax ***@***.***> wrote:
Hello,
I have a project that test mobile app with Appium and page-object. Until the version 2.1.1 of page-object, everything was fine we just use that code to make it works together:
env.rb:
$browser = Appium::Driver.new(desired_caps).start_driver
hook.rb:
Before do @browser = $browser end
But with the version 2.1.1 the trick doesn't work anymore and now methods are not implemented:
log:
Selenium::WebDriver::Error::UnknownError: Method has not yet been implemented
(eval):1:in `process_watir_call'
./lib/pages/search_job_page.rb:9:in `search'
./features/step_definitions/search_steps.rb.rb:2:in `/^I make a dummy search$/'
./features/dummy_search.feature:5:in `When I make a dummy search'
class:
class SearchJobPage
include PageObject
text_field :what, id: 'what_input'
text_field :where, id: 'where_input'
button :job_search, xpath: '(//android.widget.Button)[0]'
def search(data={})
self.what= 'dummy'
self.where= 'search'
job_search
end
end
Questions:
Is this happen because of the drop of selenium-driver or there is a real bug behind ?
How to avoid this error?
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#419>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AACGKiNiTV8E6nsJjOCWpMi8h8wltcrwks5rlosMgaJpZM4MchQo>.
|
Hello Cheezy, thank you for your time. I can see it's work when testing on a browser on mobile phone. I make this project to train my skill in mobile app testing: login_page.rb:
with page-object 2.0.0
Which is normal since the element doesn't exist in that page. (but if the element exist, it works) with page-object 2.1.1
calling
I know that page-object wasn't design for mobile app testing, but still think it's useful to use it. |
Hello @cheezy, has there been any progress with this particular ticket? We're hoping to use your library with Appium to test mobile applications (outside of just the browser). |
Hello,
I have a project that test mobile app with Appium and page-object. Until the version 2.1.1 of page-object, everything was fine we just use that code to make it works together:
env.rb:
$browser = Appium::Driver.new(desired_caps).start_driver
hook.rb:
Before do @browser = $browser end
But with the version 2.1.1 the trick doesn't work anymore and now methods are not implemented:
log:
class:
Questions:
Is this happen because of the drop of selenium-driver or there is a real bug behind ?
How to avoid this error?
Thank you
The text was updated successfully, but these errors were encountered: