I am trying to write a java WinAppDriver
program which will open Excel
, then create a blank workspace
, and then it should save that file with a given name.
I can set the file name, but I can't save the file.
Here is my code:
@Test
public void savingWorkbook() {
ExcelSession.findElementByName("File Tab").click();
ExcelSession.findElementByName("Save").click();
ExcelSession.findElementByName("This PC").click();
ExcelSession.findElementByName("Enter file name here").sendKeys("newFile");
}
What should I do next in order to save that file? Any solution will be appreciated!