viewdy / phantomjs2

Automatically exported from code.google.com/p/phantomjs
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Lack of basic DOM querying #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
From within a phatonjs script,
1. open(any_url) known to have a div element
2. list = document.getElementsByTagName("div")

What is the expected output? What do you see instead?
I expect to see a populated nodelist. I see a null object.

What version of the product are you using? On what operating system?
The latest version on Safari 10.5.

Please provide any additional information below.
Doing this explicitly within a regular browser from the console works fine.

Original issue reported on code.google.com by bouc...@logicalcognition.com on 24 Feb 2011 at 11:28

GoogleCodeExporter commented 9 years ago
Can you post a full script that reproduces the problem?

PhantomJS has good support for DOM. See the examples at 
http://code.google.com/p/phantomjs/wiki/QuickStart#DOM_Manipulation.

Original comment by ariya.hi...@gmail.com on 25 Feb 2011 at 7:49

GoogleCodeExporter commented 9 years ago
Ping.

Original comment by ariya.hi...@gmail.com on 10 Mar 2011 at 4:58

GoogleCodeExporter commented 9 years ago
Ping again.

Original comment by ariya.hi...@gmail.com on 5 Apr 2011 at 3:32

GoogleCodeExporter commented 9 years ago
Closing this one.

Original comment by ariya.hi...@gmail.com on 22 Apr 2011 at 12:17

GoogleCodeExporter commented 9 years ago
This issue has been moved to GitHub: 
https://github.com/ariya/phantomjs/issues/10046

Original comment by james.m....@gmail.com on 16 Mar 2013 at 12:17