{"action":"closed","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5927","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5927/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5927/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5927/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/5927","id":325030162,"number":5927,"title":"Ruby bindings: @driver.manage.window.full_screen fails when using xvfb","user":{"login":"jessp01","id":5270205,"avatar_url":"https://avatars0.githubusercontent.com/u/5270205?v=4","gravatar_id":"","url":"https://api.github.com/users/jessp01","html_url":"https://github.com/jessp01","followers_url":"https://api.github.com/users/jessp01/followers","following_url":"https://api.github.com/users/jessp01/following{/other_user}","gists_url":"https://api.github.com/users/jessp01/gists{/gist_id}","starred_url":"https://api.github.com/users/jessp01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessp01/subscriptions","organizations_url":"https://api.github.com/users/jessp01/orgs","repos_url":"https://api.github.com/users/jessp01/repos","events_url":"https://api.github.com/users/jessp01/events{/privacy}","received_events_url":"https://api.github.com/users/jessp01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-21T19:23:12Z","updated_at":"2018-05-21T20:59:29Z","closed_at":"2018-05-21T20:59:29Z","author_association":"NONE","body":"## Meta -\r\nOS:  Linux, Ubuntu 16.04\r\nSelenium Version:  \r\nselenium-webdriver [3.12.0] installed from RubyGems, using Geckodriver v0.20.1, downloaded from https://github.com/mozilla/geckodriver/releases/download/v0.20.1/geckodriver-v0.20.1-linux64.tar.gz\r\nRuby version: 2.3 - 2.3.1-2~16.04.9 [deb from the official repo]\r\nBrowser:  \r\nFirefox, 60.0.1+build2-0ubun [deb from the official repo]\r\n\r\n## Expected Behavior -\r\nFor the below test code to run successfully.\r\n\r\n## Steps to reproduce -\r\nConsider this code snippet:\r\n```ruby\r\n#!/usr/bin/ruby2.3\r\nrequire \"json\"\r\nrequire \"selenium-webdriver\"\r\ngem \"test-unit\"\r\nrequire \"test/unit\"\r\n\r\nclass Vconn1 < Test::Unit::TestCase\r\n\r\n  def setup\r\n    @profile = Selenium::WebDriver::Firefox::Profile.new\r\n    @caps = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => @profile)\r\n\r\n    @base_url = \"https://google.com\"\r\n    @driver = Selenium::WebDriver.for :firefox, desired_capabilities:@caps\r\n    # when uncommenting this and commenting @driver.manage.window.full_screen, it works\r\n    #@driver.manage.window.maximize\r\n    @driver.manage.window.full_screen\r\n\r\n\r\n    @accept_next_alert = true\r\n    @driver.manage.timeouts.implicit_wait = 30\r\n    @verification_errors = []\r\n  end\r\n  \r\n  def teardown\r\n    @driver.quit\r\n    assert_equal [], @verification_errors\r\n  end\r\n  \r\n  def test_vconn1\r\n    @driver.get(@base_url )\r\n    @driver.find_element(:id, \"lst-ib\").send_keys \"Selenium xvfb firefox full screen problem\"\r\n    @driver.find_element(:name, \"btnK\").click\r\n    #sleep(120)\r\n  end\r\n  \r\n  def element_present?(how, what)\r\n    @driver.find_element(how, what)\r\n    true\r\n  rescue Selenium::WebDriver::Error::NoSuchElementError\r\n    false\r\n  end\r\n  \r\n  def alert_present?()\r\n    @driver.switch_to.alert\r\n    true\r\n  rescue Selenium::WebDriver::Error::NoAlertPresentError\r\n    false\r\n  end\r\n  \r\n  def verify(&blk)\r\n    yield\r\n  rescue Test::Unit::AssertionFailedError => ex\r\n    @verification_errors << ex\r\n  end\r\n  \r\n  def close_alert_and_get_its_text(how, what)\r\n    alert = @driver.switch_to().alert()\r\n    alert_text = alert.text\r\n    if (@accept_next_alert) then\r\n      alert.accept()\r\n    else\r\n      alert.dismiss()\r\n    end\r\n    alert_text\r\n  ensure\r\n    @accept_next_alert = true\r\n  end\r\nend\r\n```\r\n\r\nThis works well outside of `xvfb-run` context. When calling it like so:\r\n```sh\r\n$ xvfb-run -s \":99 -auth /tmp/xvfb.auth -ac -screen 0 1920x1080x24\" /path/to/above/code/snippet   &\r\n```\r\nit fails with the below BT.\r\n\r\n## Actual Behavior -\r\n```\r\nError: test_vconn1(Vconn1): Net::ReadTimeout: Net::ReadTimeout\r\n/usr/lib/ruby/2.3.0/net/protocol.rb:158:in `rbuf_fill'\r\n/usr/lib/ruby/2.3.0/net/protocol.rb:136:in `readuntil'\r\n/usr/lib/ruby/2.3.0/net/protocol.rb:146:in `readline'\r\n/usr/lib/ruby/2.3.0/net/http/response.rb:40:in `read_status_line'\r\n/usr/lib/ruby/2.3.0/net/http/response.rb:29:in `read_new'\r\n/usr/lib/ruby/2.3.0/net/http.rb:1437:in `block in transport_request'\r\n/usr/lib/ruby/2.3.0/net/http.rb:1434:in `catch'\r\n/usr/lib/ruby/2.3.0/net/http.rb:1434:in `transport_request'\r\n/usr/lib/ruby/2.3.0/net/http.rb:1407:in `request'\r\n/usr/lib/ruby/2.3.0/net/http.rb:1400:in `block in request'\r\n/usr/lib/ruby/2.3.0/net/http.rb:853:in `start'\r\n/usr/lib/ruby/2.3.0/net/http.rb:1398:in `request'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/http/default.rb:121:in `response_for'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/http/default.rb:76:in `request'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/http/common.rb:62:in `call'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/bridge.rb:164:in `execute'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/w3c/bridge.rb:535:in `execute'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/remote/w3c/bridge.rb:192:in `full_screen_window'\r\n/var/lib/gems/2.3.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/common/window.rb:157:in `full_screen'\r\n/tmp/sel_gecko_test.rb:22:in `setup'\r\n```\r\n\r\nWhen commenting out:\r\n```ruby\r\n@driver.manage.window.full_screen\r\n```\r\nand replacing it with:\r\n```ruby\r\n@driver.manage.window.maximize\r\n```\r\nit works correctly in xvbf context as well so the issue is only with `@driver.manage.window.full_screen`\r\n\r\nThanks in advance,"}}
{"actor":{"display_login":"lmtierney"}}