1

Currently the firefox browser deny the full screen, so when I test my code, it cannot go up to full screen. Is there a place I could change this setting? Is this something I could put on the test configuration json?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Jeff Hsu
  • 11
  • 1

1 Answers1

2

You can maximize the browser window via maximize():

browser.driver.manage().window().maximize();

If you want to apply it for all of your tests, call it in onPrepare() inside the protractor config.

See also:

Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • i'm working on a video player. I think the above solution will set the browser size, but somehow firefox does not allow my video player to be at full screen (I think there is a permission setting). Is there any way to change the permission setting in the configuration? Sorry that i didn't make this clear earlier. – Jeff Hsu Feb 25 '15 at 01:15
  • @JeffHsu ok, no problem. How are you trying to make the player full screen? – alecxe Feb 25 '15 at 01:16
  • If somebody have a solution to this problem please post it – P-A Nov 17 '15 at 10:19