Skip to content

Commit db2c403

Browse files
unknownunknown
authored andcommitted
Fixed SetLocation not accurate enough (florentbr#65)
Changes the arguments type from Int32 to Double
1 parent fdbcc71 commit db2c403

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Selenium/ComInterfaces/_Manage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public interface _Manage {
1919
Dictionary Location();
2020

2121
[DispId(56), Description("Get the current geo location.")]
22-
void SetLocation(int latitude, int longitude, int altitude);
22+
void SetLocation(double latitude, double longitude, double altitude);
2323

2424
[DispId(69), Description("Collection of cookies for the current page")]
2525
Cookies Cookies { get; }

Selenium/Common/Manage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public Dictionary Location() {
9292
/// <summary>
9393
/// Set the current geo location.
9494
/// </summary>
95-
public void SetLocation(int latitude, int longitude, int altitude) {
95+
public void SetLocation(double latitude, double longitude, double altitude) {
9696
Dictionary location = new Dictionary();
9797
location.Add("latitude", latitude);
9898
location.Add("longitude", longitude);

0 commit comments

Comments
 (0)