Add method to Maximise the browser

RESOLVED FIXED in mozilla35

Status

defect
RESOLVED FIXED
5 years ago
3 years ago

People

(Reporter: automatedtester, Assigned: automatedtester)

Tracking

unspecified
mozilla35
x86
macOS
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Assignee

Description

5 years ago
This currently supported in WebDriver so we should add it too
Assignee

Updated

5 years ago
Assignee: nobody → dburns
Status: NEW → ASSIGNED
Comment on attachment 8491910 [details] [diff] [review]
Add maximise_window() to Marionette to allow maximising the browser window

Review of attachment 8491910 [details] [diff] [review]:
-----------------------------------------------------------------

::: testing/marionette/marionette-server.js
@@ +2457,5 @@
> +      return;
> +    }
> +
> +    let curWindow = this.getCurrentWindow();
> +    curWindow.resizeTo(curWindow.screen.availWidth, curWindow.screen.availHeight);

Don't we also need a call to curWindow.moveTo(0,0) to emulate the behavior of pressing the maximize button?
Attachment #8491910 - Flags: review?(jgriffin) → review+
Assignee

Comment 5

5 years ago
(In reply to Jonathan Griffin (:jgriffin) from comment #4)
> Comment on attachment 8491910 [details] [diff] [review]
> Add maximise_window() to Marionette to allow maximising the browser window
> 
> Review of attachment 8491910 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: testing/marionette/marionette-server.js
> @@ +2457,5 @@
> > +      return;
> > +    }
> > +
> > +    let curWindow = this.getCurrentWindow();
> > +    curWindow.resizeTo(curWindow.screen.availWidth, curWindow.screen.availHeight);
> 
> Don't we also need a call to curWindow.moveTo(0,0) to emulate the behavior
> of pressing the maximize button?

It was working without it (locally) but it isnt going to hurt to add it.
Assignee

Comment 8

5 years ago
Comment on attachment 8492082 [details] [diff] [review]
Add maximise_window() to Marionette to allow maximising the browser window

adding moveTo as per comment and landed. Carrying r+ forward
Attachment #8492082 - Flags: review+
Assignee

Updated

5 years ago
Attachment #8491910 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/4d99a011dffe
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.