From 55ba566778dc5aa93ba48ee654cfe81a5d86396b Mon Sep 17 00:00:00 2001 From: Sylvain van der Meer VIKTOR <98584521+svandermeer@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:05:29 +0200 Subject: [PATCH] Update Program.cs to D-Stability v2023.01 --- StiToStix/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StiToStix/Program.cs b/StiToStix/Program.cs index 12dcbb0..c99f687 100644 --- a/StiToStix/Program.cs +++ b/StiToStix/Program.cs @@ -10,7 +10,7 @@ public class StiToStix private static WindowsDriver? _winDriver; public string stiDir = @"C:\Users\brein\Documents\Deltares\sti"; //public string stixDir = @"C:\Users\brein\Documents\Deltares\stix"; - public string dstabExe = "C:\\Program Files (x86)\\Deltares\\D-GEO Suite\\D-Stability 2022.01.2\\bin\\D-Stability.exe"; + public string dstabExe = "C:\\Program Files (x86)\\Deltares\\D-GEO Suite\\D-Stability 2023.01\\bin\\D-Stability.exe"; public void execute(string filePath) { var newFileName = filePath + "x"; @@ -26,7 +26,7 @@ public void execute(string filePath) { // Close the start screen and go to the import sti button _winDriver.Keyboard.PressKey(Keys.Escape); _winDriver.FindElementByAccessibilityId("FileTab").Click(); - _winDriver.FindElementByAccessibilityId("ImportStiBackstageButton").Click(); + _winDriver.FindElementByAccessibilityId("ImportStiButton").Click(); Thread.Sleep(1000); @@ -38,7 +38,7 @@ public void execute(string filePath) { // Open the save menu _winDriver.FindElementByAccessibilityId("FileTab").Click(); - _winDriver.FindElementByAccessibilityId("SaveBackstageButton").Click(); + _winDriver.FindElementByAccessibilityId("SaveAsButton").Click(); Thread.Sleep(1000); @@ -69,4 +69,4 @@ public static void Main() } } } -} \ No newline at end of file +}