Skip to content

Commit

Permalink
Merge pull request #5 from pmahend1/dev
Browse files Browse the repository at this point in the history
Updates pertaining to Selenium and Commandline
  • Loading branch information
pmahend1 authored Sep 20, 2020
2 parents eaaf94a + cb2fb77 commit 02b7b85
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 196 deletions.
12 changes: 8 additions & 4 deletions .Net Core/MSRewards/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ public static class Constants

public const string PasswordEntryName = "passwd";

public const string CheckboxName = "KMSI";
public const string PasswordEntryId = "i0118";

public const string CheckboxId = "KmsiCheckboxField";

public const string RememberMeCheckboxName = "KMSI";

public const string RewardsPageTitle = "Microsoft account | Home";

Expand All @@ -20,14 +24,14 @@ public static class Constants

public const string UserAgentKey = "general.useragent.override";

public const string MobileUserAgent = @"Mozilla/5.0 (Android 9; Mobile; rv:74.0) Gecko/74.0 Firefox/74.0";
public const string MobileUserAgent = @"Mozilla/5.0 (Android 10; Mobile; rv:81.0) Gecko/81.0 Firefox/81.0";

public const string PrivateBrowingKey = "browser.privatebrowsing.autostart";
public const string PrivateBrowsingKey = "browser.privatebrowsing.autostart";

public const string PointsBreakdownUrl = "https://account.microsoft.com/rewards/pointsbreakdown";

public const string UserPointsBreakdownId = "userPointsBreakdown";

public const string EdgeUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4080.0 Safari/537.36 Edg/82.0.453.2";
public const string EdgeUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51";
}
}
7 changes: 4 additions & 3 deletions .Net Core/MSRewards/MSRewards.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Selenium.Firefox.WebDriver" Version="0.26.0" />
<PackageReference Include="Selenium.Support" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
<PackageReference Include="CommandLineParser" Version="2.9.0-preview1" />
<PackageReference Include="Selenium.Firefox.WebDriver" Version="0.27.0" />
<PackageReference Include="Selenium.Support" Version="4.0.0-alpha05" />
<PackageReference Include="Selenium.WebDriver" Version="4.0.0-alpha05" />
</ItemGroup>
</Project>
18 changes: 18 additions & 0 deletions .Net Core/MSRewards/Options.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using CommandLine;

namespace MSRewards
{
class Options
{
[Option('F', "use-firefox", Required = false, HelpText = "Use Firefox")]
public bool Firefox { get; set; }


[Option('E',"email", Required = true, HelpText = "Email ID")]
public string Email { get; set; }

[Option('P', "password", Required = true, HelpText = "password")]
public string Password { get; set; }

}
}
Loading

0 comments on commit 02b7b85

Please sign in to comment.