Hi Haifeng, We tried xwalkdriver bin for Crosswalk stable 20.50.533.12 and 21.51.546.6 with customized app, walkdriver and chrome://inspect for remote debugging work well.
For WebDriverException: Message: xwalk not reachable in your com.app.ehang.copter app, have you enabled remote debugging, and what’s the Crosswalk version when you build the app? https://crosswalk-project.org/documentation/android/android_remote_debugging.html BR Belem From: Crosswalk-help [mailto:[email protected]] On Behalf Of ??? Sent: Tuesday, September 27, 2016 8:10 PM To: [email protected] Subject: [Crosswalk-help] help: crosswalk driver report error:xwalk not reachable Hi, Im facing a problem when using xwalkdriver by python, please help me. My code as below: from selenium import webdriver from posix import wait from time import sleep import unittest class TestCrossWalk(unittest.TestCase): def setUp(self): capabilities = { 'xwalkOptions': { 'androidPackage': 'com.app.ehang.copter', 'androidActivity': '.activitys.MainActivity', 'adb-port': 5037, } } print("dfs1") self.driver = webdriver.Remote('http://localhost:9515', capabilities) def tearDown(self): # end the session self.driver.quit() def test_login(self): print("dfs") sleep(300) self.driver.find_element_by_id("login_id").send_keys("1234") if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(TestCrossWalk) unittest.TextTestRunner(verbosity=2).run(suite) when I run these code, my app can start for a while, and it will shut down after a few second and report the error as below: Traceback (most recent call last): File "/home/ehang/workspace/test1/h5/__init__.py", line 16, in setUp self.driver = webdriver.Remote('http://localhost:9515', capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 90, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 177, in start_session response = self.execute(Command.NEW_SESSION, capabilities) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) WebDriverException: Message: xwalk not reachable (Driver info: xwalkdriver=2.5.ede663c5c5362a073e538cdabacf85612bc9e16a,platform=Linux 3.16.0-30-generic x86) My app is hybrid app which contain crosswalk H5, and it shut down before I switch to H5 page. By the way, the error line is self.driver = webdriver.Remote('http://localhost:9515', capabilities)
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
