The Wayback Machine - https://web.archive.org/web/20200711033245/https://github.com/topics/phantomjs
Skip to content
#

phantomjs

Here are 491 public repositories matching this topic...

ashwin-yardi-10
ashwin-yardi-10 commented Sep 29, 2018

Here is the code snippet:

nightmare
    .on('console', (log, msg) => {
        console.log(msg)
    })
    .on('error', (err) => {
        console.log(err)
    })
    .goto(url)
    .inject('js', 'jquery.min.js')
    .wait('#btnSearchClubs')
    .click('#btnSearchClubs')
    .wait(5000)
    .evaluate(function () {
        const pageAnchor = Array.from(document.querySelectorAll(
amitchapter247
amitchapter247 commented Feb 20, 2020

I need to disable all the anchor tags click I try this CSS but not working:

a {
      pointer-events: none!important;
     cursor: not-allowed!important;
      opacity: 1;
      z-index: -2;
      text-decoration: none!important;
     color: #282d35;
    }

after applying this CSS only text-decoration remove but the link is still clickable.

HouzuoGuo
HouzuoGuo commented Jun 14, 2018

versions

  • SlimerJS: 1.0
  • Firefox: 58
  • Operating system: Alpine Linux container

Steps to reproduce the issue

The legacy PhantomJS uses a rather weird convention for evaluateJavaScript function - it asks the script input to be wrapped around function() {}, or the script will not be executed at all. For example:

http://phantomjs.org/api/webpage/method/evaluate-java-script.

keathley
keathley commented Jul 12, 2018

I propose that we should remove the ability to pass an element to any of the Browser functions. Doing this removes an entire class of race conditions since queries block until they become true. This also makes the api more consistent and should help to reduce issues with chaining. We already support Element so if people want to find a specific element and then pass that element to the `Element

chenaonan88
chenaonan88 commented Jul 23, 2019
  1. 代码是这样的:<img src="http://img-1255379270.cosbj.myqcloud.com/website/iconWeb/phone-1.png" class="foot-img" style="height: 34px; width: 34px; background-color: rgb(17, 17, 17); vertical-align: middle; border-radius: 50px;">

  2. 浏览器展示是圆图: http://test-1255379270.cosbj.myqcloud.com/Snipaste_2019-07-23_14-26-03.png

  3. html 转图片生成的图片为:[http://test-1255379270.cosbj.myqcloud.com/Snipaste_201

Improve this page

Add a description, image, and links to the phantomjs topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the phantomjs topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.