appium / ruby_lib

:gem: Ruby library for Appium
http://rubygems.org/gems/appium_lib
216 stars 160 forks source link

fix: remove the method and define again instead #920

Closed KazuCocoa closed 2 years ago

KazuCocoa commented 2 years ago

Summary

Fixes https://github.com/appium/ruby_lib/issues/917

A session id remained in the next session when extend methods by promote_appium_methods this was because probably some methods, that related to a global variable, also remained then.

The skip itself was to avoid redundant method definition, but at this time, I've changed to remove it once, and define it again.

How Has This Been Tested?

Create and run 2 scenarios with Cucumber.