cannot read window.outerHeight and window.outerWidth?

218 views
Skip to first unread message

Kohki Nakashima

unread,
Jul 24, 2013, 5:04:19 AM7/24/13
to phan...@googlegroups.com

Hello, all

i couldn't read window.outerHeight and window.outerWidth at phantomjs.

it will be reflected in window.innerWidth and window.innerHeight if setting page.viewportSize. 
how to set window.outerHeight and window.outerWidth is unknown.

May not I possibly refer to outerHeight and outerWidth at phantomjs???

Thanks,
kohki

James Greene

unread,
Jul 24, 2013, 8:57:05 AM7/24/13
to phan...@googlegroups.com

Maybe try the workaround in Example #2 of this page?

http://help.dottoro.com/ljlbbqca.php

Sincerely,
   James Greene

--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

中島 幸樹

unread,
Jul 24, 2013, 9:44:28 AM7/24/13
to phan...@googlegroups.com
thank you for the reply.

i tried using clientWidth and clientHeight.
but, i cannot edit the script of a site.

After all, aren't there any means other than injectjs or page.evaluate?

thanks.

2013/7/24 James Greene <james.m...@gmail.com>:
> You received this message because you are subscribed to a topic in the
> Google Groups "phantomjs" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/phantomjs/sgTJJpHGbSQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Kohki Nakashima

unread,
Jul 24, 2013, 9:45:43 AM7/24/13
to phan...@googlegroups.com
thank you for the reply.

i tried using clientWidth and clientHeight.
but, i cannot edit the script of a site.

After all, aren't there any means other than injectjs or page.evaluate?

thanks.


2013年7月24日水曜日 21時57分05秒 UTC+9 James Greene:

James Greene

unread,
Jul 24, 2013, 10:20:31 AM7/24/13
to phan...@googlegroups.com
You don't need to edit the script of the site, just `page.evaluate` the script in that example (for the most part, minus `alert` calls and such).

Sincerely,
    James Greene

Kohki Nakashima

unread,
Jul 24, 2013, 10:37:02 AM7/24/13
to phan...@googlegroups.com
Thanks James.
i will use page.evaluate :)

2013年7月24日水曜日 23時20分31秒 UTC+9 James Greene:
Reply all
Reply to author
Forward
0 new messages