simulate keyboard input / insert string into textarea (adwords)

后端 未结 2 461
盖世英雄少女心
盖世英雄少女心 2021-02-04 21:09

I am trying to scrape keywords from https://adwords.google.com/ko/KeywordPlanner/Home using CefSharp (version 43)

I am able to log into the adwords portal p

2条回答
  •  故里飘歌
    2021-02-04 21:54

    Ok, I found the solution:

    function setKeywordText(text) {
        var el = document.getElementById("gwt-debug-keywords-text-area");
        el.value = text;
        var evt = document.createEvent("Events");
        evt.initEvent("change", true, true);
        el.dispatchEvent(evt);
    }
    
    setKeywordText("test");
    

提交回复
热议问题