Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions StiToStix/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class StiToStix
private static WindowsDriver<WindowsElement>? _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";
Expand All @@ -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);

Expand All @@ -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);

Expand Down Expand Up @@ -69,4 +69,4 @@ public static void Main()
}
}
}
}
}