Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
107 views
in Technique[技术] by (71.8m points)

node.js - How to get the content of a <script> tag

   await driver.get('https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Redline%20%28Field-Tested%29');

    let script = driver.findElements(By.xpath('/html/body/div[1]/div[7]/div[2]/script[3]'));
    

    script.then(() => {
        console.log(script);
    });

This is a code example. I hope u can show me how I can get the code inside the script.

Thanks in advance.

question from:https://stackoverflow.com/questions/65892120/how-to-get-the-content-of-a-script-tag

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...