How do I click this link using nightmare?

后端 未结 2 1767
小蘑菇
小蘑菇 2021-01-28 06:30

Here is everything involving the link:



        
2条回答
  •  执笔经年
    2021-01-28 07:04

    first grab the DOM node and assign to a variable then click on the node. Also you need to add brackets around the selector and don't need the inner single quotes unless there is a space or other invalid character in the value

    var myLink = document.querySelector("[data-style-name=black]");
    .click(myLink)
    

提交回复
热议问题