Skip to content

Commit

Permalink
chore: update chrome version driver
Browse files Browse the repository at this point in the history
  • Loading branch information
stupenkov committed Aug 18, 2023
1 parent 0cb1d0d commit ae73918
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
<PackageReference Include="Selenium.WebDriver" Version="4.8.2" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="114.0.5735.9000" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="116.0.5845.9600" />
<PackageReference Include="SkiaSharp" Version="2.88.3" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.3" />
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
Expand Down
24 changes: 2 additions & 22 deletions Stupesoft.LazyScalp.ConsoleUI/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,6 @@
"App": "Filename=D:\\LazyScalp.db;Connection=Shared",
"TradingViewDB": "Filename=D:\\TradingViewDB.db;Connection=Shared"
},
"indicator": {
"HighLevelPosition": {
"X": 2285,
"Y": 110
},
"LowLevelPosition": {
"X": 2285,
"Y": 140
},
"CodeColorIndicatorTarget": {
"X": 2180,
"Y": 680
},
"CodeColorIndicatorSideSize": 10
},
"imagePreparation": {
"Left": 65,
"Top": 50,
"Right": 2400,
"Bottom": 825
},
"Application": {
"NotificationDelayTimeMin": 1,
"Features": {
Expand All @@ -32,7 +11,8 @@
},
"Scaner": {
"ReloadDelayTimeSecond": 10,
"ChromeProfile": "Profile 3"
"ChromeProfile": "Profile 2",
"ChromeDataUserDir": "C:\\Users\\stupean\\AppData\\Local\\Google\\Chrome\\User Data\\"
},
"ScalpStation": {
"Filters": [
Expand Down
3 changes: 2 additions & 1 deletion Stupesoft.LazyScalp.ConsoleUI/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
},
"ReloadDelayTimeSecond": 60,
"SkipAuth": true,
"ChromeProfile": "Default"
"ChromeProfile": "Default",
"ChromeDataUserDir": "C:\\Users\\Anton\\AppData\\Local\\Google\\Chrome\\User Data\\"
},
"ScalpStation": {
"url": "https://scalpstation.com/kapi/binance/futures/kdata",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public IWebDriver Create()
options.AddArgument("--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36");
if (_scanerOptions.Value.SkipAuth)
{
options.AddArgument(@"--user-data-dir=C:\Users\Anton\AppData\Local\Google\Chrome\User Data\");
options.AddArgument(@$"--user-data-dir={_scanerOptions.Value.ChromeDataUserDir}");
options.AddArgument(@$"--profile-directory={_scanerOptions.Value.ChromeProfile}");
}
else
Expand Down
1 change: 1 addition & 0 deletions Stupesoft.LazyScalp.TradingView/TradingViewOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class ScanerOptions
public int ReloadDelayTimeSecond { get; set; }
public bool SkipAuth { get; set; }
public string? ChromeProfile { get; set; }
public string? ChromeDataUserDir { get; set; }
}

public class SelectorsOptions
Expand Down

0 comments on commit ae73918

Please sign in to comment.