I'd like to enhance the functionality of the above code.
add a switch in the parameters so that when it can't find a tab with the specified keyword, it opens a new tab with a specified URL. After the webpage has completely loaded, it should return.
Is there a more stable and widely applicable solution than the method of opening a new tab described below, which is only suitable for specific language operating systems?
var e = w.Elm["BUTTON", "新标签页"].Find(3); e.MouseClick();
add a switch in the parameters so that when it can't find a tab with the specified keyword, it opens a new tab with a specified URL. After the webpage has completely loaded, it should return.
Is there a more stable and widely applicable solution than the method of opening a new tab described below, which is only suitable for specific language operating systems?
var e = w.Elm["BUTTON", "新标签页"].Find(3); e.MouseClick();