java - Selenium makes "Browser under control" and test fails -


yesterday, changed encoding preferences utf-8 eclipse, because problem execute jenkins, , now, since then, have problem...

when run tests eclipse, selenium webdriver open new window , go web page. now, opens web page, , minimize , show "the browser under remote control" , so, in consequence, makes tests fail, because webelement changes position (before, web page maximized).

i've tried doing "maximize" or send "f11" keys this:

system.setproperty("webdriver.gecko.driver","c:\\.....\\geckodriver-v0.17.0\\geckodriver.exe");     profilesini profile = new profilesini();     firefoxprofile testprofile = profile.getprofile("usertest");     testprofile.setacceptuntrustedcertificates(true);     testprofile.setassumeuntrustedcertificateissuer(true);     testprofile.setpreference("security.insecure_field_warning.contextual.enabled", false);     desiredcapabilities dc = desiredcapabilities.firefox();     dc.setcapability(firefoxdriver.profile, testprofile);     dc.setcapability("marionette", true);     webdriver driver =  new firefoxdriver(dc);     driver.manage().window().maximize();     driver.navigate().to("http://webpage.com/");      //fullscreen      try {         // press f11 key of keyboard switch browser full screen         robot robot = new robot();         thread.sleep(2000);         robot.keypress(keyevent.vk_f11);     } catch (awtexception e) {         system.err.println("exception (ignored) " + e.tostring());     } 

and doesn't work.

i show image:

browser under remote control

i have before this, executed tests correctly, without message "browser under remote control" , without minimizing window...

why has changed? why show "remote control" if computer isn't being controlled??

thanks much!!!

try after removing below line code.

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

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -