Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Elm couldn't find popup download button
#3
Code:
Copy      Help
p.Open("https://notes-box.com/notes/classical-music/");
200.ms();
for (int i = 1; i <= 1; i++) {
    p.Open($"https://notes-box.com/notes/classical-music/?PAGEN_1={i}");
    200.ms();
    foreach (var song in w.Elm["web:IMAGE", prop: "@loading=lazy"].FindAll().Select(o => o.Navigate("pa").Value).ToArray()) {
        p.Open(song);
        200.ms();
        var composer = w.Elm["web:LINK", prop: "@ru=Классческая", navig: "pr la"].Find(1).Name;
        var click = w.Elm["web:GROUPING", prop: "@target=_blank"].Find(1);
        click.Invoke();
        //18.s(); //it seems you can cheat and don't wait. Will find the button while it's still invisible. But don't forget to donate.
        var button = w.Elm["web:LINK", "DOWNLOAD FILE"].Find(3);
        print.it(button);
        //print.it(w.Elm["web:LINK"].FindAll());
        
        200.ms();
        button.SendKeys("Apps");
        var w2 = wnd.find(5, "", "Chrome_WidgetWin_?", "chrome.exe", contains: "Save link as…");
        print.it(w2);
        var save = w2.Elm["MENUITEM", "Save link as…"].Find(3);
        save.Invoke();
        //300.ms();
        break;
    }
}


Messages In This Thread
RE: Elm couldn't find popup download button - by Gintaras - 06-19-2023, 03:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)