You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Home.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,34 @@ Find documentation about the Page Object APIs: [[Page-Object-APIs]].
38
38
39
39
## Opening Files and Folders
40
40
41
-
Opening files and folders is basic functionality of VS Code.
41
+
Opening files and folders is a fundamental part of automating interactions in VS Code. Since version **4.2.0**, the recommended approach is to use the `openResources` method provided by the `VSBrowser` API.
42
42
43
-
Since 4.2.0, the most convenient way to open files and folders is the `openResources` method in `VSBrowser`. Use it to open potentially multiple folders or files at the same time (method also waits for workbench to refresh). Files are opened in the editor, single folder will be opened directly in the explorer, multiple folders will be opened as a multi-workspace.
It is recommended to use absolute paths, relative paths are based on process' cwd.
45
+
This method allows you to open one or more files and folders, **and optionally wait for additional conditions** once the workbench is loaded. It automatically waits for the workbench to be ready after opening resources.
0 commit comments