{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5623","labels_url":"https://api.github.com/repos/appium/appium/issues/5623/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5623/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5623/events","html_url":"https://github.com/appium/appium/issues/5623","id":107180109,"number":5623,"title":"Underlying webdriver instance does not support javascript","user":{"login":"DavidSelby","id":3726508,"avatar_url":"https://avatars.githubusercontent.com/u/3726508?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidSelby","html_url":"https://github.com/DavidSelby","followers_url":"https://api.github.com/users/DavidSelby/followers","following_url":"https://api.github.com/users/DavidSelby/following{/other_user}","gists_url":"https://api.github.com/users/DavidSelby/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidSelby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidSelby/subscriptions","organizations_url":"https://api.github.com/users/DavidSelby/orgs","repos_url":"https://api.github.com/users/DavidSelby/repos","events_url":"https://api.github.com/users/DavidSelby/events{/privacy}","received_events_url":"https://api.github.com/users/DavidSelby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T10:55:30Z","updated_at":"2016-01-12T09:18:10Z","closed_at":null,"body":"1.5-beta (can't add labels)\r\n\r\nWhen calling `@driver.execute_script(\"window.localStorage.clear();\")` the following error is returned: \"underlying webdriver instance does not support javascript\".\r\n\r\nDriver setup:\r\n\r\n`caps = {`\r\n        `'platformName' => 'iOS',`\r\n        `'platformVersion' => '8.4',`\r\n        `'deviceName' => 'iPhone Simulator',`\r\n        `'browserName' => 'Safari'`\r\n   ` }`\r\n   ` $appium = Appium::Driver.new(:caps => caps, :appium_lib => {'port' => '4723')`\r\n    `$driver = $appium.start_driver`"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/170847647","html_url":"https://github.com/appium/appium/issues/5623#issuecomment-170847647","issue_url":"https://api.github.com/repos/appium/appium/issues/5623","id":170847647,"user":{"login":"JaniJegoroff","id":2363231,"avatar_url":"https://avatars.githubusercontent.com/u/2363231?v=3","gravatar_id":"","url":"https://api.github.com/users/JaniJegoroff","html_url":"https://github.com/JaniJegoroff","followers_url":"https://api.github.com/users/JaniJegoroff/followers","following_url":"https://api.github.com/users/JaniJegoroff/following{/other_user}","gists_url":"https://api.github.com/users/JaniJegoroff/gists{/gist_id}","starred_url":"https://api.github.com/users/JaniJegoroff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaniJegoroff/subscriptions","organizations_url":"https://api.github.com/users/JaniJegoroff/orgs","repos_url":"https://api.github.com/users/JaniJegoroff/repos","events_url":"https://api.github.com/users/JaniJegoroff/events{/privacy}","received_events_url":"https://api.github.com/users/JaniJegoroff/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T09:18:10Z","updated_at":"2016-01-12T09:18:10Z","body":"I see the same issue with `v1.5.0-beta11 (REV 300441be033c7e47ae26de29137aa985ad7169d4)`. Appium server `1.4.16` is working fine.\r\n\r\n```\r\nJanis-MacBook-Air:JLPermissions janijegoroff$ ruby test.rb\r\n/Users/janijegoroff/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/appium_lib-8.0.0/lib/appium_lib/common/wait.rb:50:in `_generic_wait': timed out after 30 seconds (underlying webdriver instance does not support javascript) (Selenium::WebDriver::Error::TimeOutError)\r\n\tfrom /Users/janijegoroff/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/appium_lib-8.0.0/lib/appium_lib/common/wait.rb:95:in `wait'\r\n\tfrom /Users/janijegoroff/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/appium_lib-8.0.0/lib/appium_lib/driver.rb:229:in `rescue in block (4 levels) in promote_appium_methods'\r\n\tfrom /Users/janijegoroff/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/appium_lib-8.0.0/lib/appium_lib/driver.rb:220:in `block (4 levels) in promote_appium_methods'\r\n\tfrom test.rb:18:in `<main>'\r\nJanis-MacBook-Air:JLPermissions janijegoroff$\r\n```\r\n\r\nHere is the simple example project to reproduce: https://github.com/JaniJegoroff/JLPermissions"}}