Skip to content

Commit

Permalink
Merge pull request #249 from diana96alazzam/32.0_fix_set_window_rec
Browse files Browse the repository at this point in the history
Change type of x and y parameters to accept signed integer types instead of unsigned.
  • Loading branch information
Vrtgs authored Oct 23, 2024
2 parents a9a1daa + b278c6b commit 3c624ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thirtyfour/src/session/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,14 +637,14 @@ impl SessionHandle {
/// ```
pub async fn set_window_rect(
&self,
x: u32,
y: u32,
x: i64,
y: i64,
width: u32,
height: u32,
) -> WebDriverResult<()> {
let rect = OptionRect {
x: Some(x as i64),
y: Some(y as i64),
x: Some(x),
y: Some(y),
width: Some(width as i64),
height: Some(height as i64),
};
Expand Down

0 comments on commit 3c624ac

Please sign in to comment.