is it possible to do low-level pixel inspection with selenium? - selenium

is it possible to inspect the value of a specific pixel in the browser rendered page with Selenium? can i get a buffer of the rendered page as an image?
Also, is it possible to send mouse-scroll-down commands to the browser?
cheers

You can save a screenshot of the entire page and then manipulate the image file

Related

How to identify img file which is loaded under network monitor console using selenium

When we navigate to a page and inspect the page, under Network monitor tab > images, we get a list of file names (Ex. imgge.png) as the page is loaded. How do i idientify the image is present when we navigate to a page using selenium script.
I have attached the screenshot for reference what im exactly referring to.
enter image description here
driver.findElement(By.id("imagefile_id")).isDisplayed();
get the id value of the image and use the above script, it return the Boolean value.

Return image contents by Scrapy-Splash

I'm using Scrapy-Splash requests to get a rendered screenshot of a page, but I also need the images on that page. I use the pipelines to download those images, but I was thinking - does this not make two requests for the same image? Once when Splash is rendering the page and once when I send a download request. Is there a way I can get the images returned by the Scrapy-Splash request?
You can enable response bodies (use either respone_body argument or splash.response_body_enabled=True) and then extract images from HAR export.

Is it possible to see the live rendering effect of PhantomJS?

PhantomJS is a very cool tool for taking screenshots. But since it doesn't tell you how your HTML renders like until you save the image, it's quite tough to adjust small details with it. Is there any way to make the process easier?
For example, to output the display of the page rendered by PhantomJS live to somewhere so that I can see how it actually renders.
Thanks,

Modifying photosphere on website thing

What i am trying to do is to use a photosphere on my website so that it shows up on full screen as a website cover page. The problem is the the code to embed a photosphere in a webpage given here by google
https://developers.google.com/photo-sphere/web/
lets only the photosphere size to be hardcoded as
displaysize="600,400"
what ever the values but its still hardcoded. What i want is that it gets adjusted to the screen of the user and gets displayed in the whole browser window. Any one got an idea how to pull it off? I didn't find any stuff about 'photosphere on web' other than the google link i gave above.
Indeed the API is currently designed to take static values. I think it's a good point that users might want to set the dimensions to 100% and let it resize dynamically.
I put it on the TODO list and will try to get to it shortly.
In the meantime, one work around is the following: After the viewer loads you will find an iframe on the page which contains it. You can change it's dimensions dynamically to your liking and the viewer should adapt.
The API provided by Google wraps the whole photosphere in layers of iFrames.
You can use the API to request a certain photosphere but only use the response to parse it for the values you need. Then you create your own request and the result can be shown fullscreen.
An example link is this
I created this link dynamically from the JSON response from the elements
media$group media$content 0 url
Hope it helps.
Can't you take the raw image and just use webgl to project it on the inside of a sphere?

Link a Blog into scrolling text of SWF file

I'm working on an entirely flash-based site for a client who has already been using Blogspot for his News/Homepage updates. He wants to continue updating through Blogspot, but wants the blog to automatically fill in the text box on the flash site Homepage. I'm not sure if this is possible, or how I would go about doing it.
Here is the blogspot page:
http://atmarsamps.blogspot.com/
Here is an example of what the scrolling SWF text box will be like:
http://eloquentcreative.com/
Is this possible? Any help would be absolutely amazing!
You can use URLLoader to load the page as text. I'm not sure of the best way to parse it though.
Maybe you can try looking for the CSS tag that is being used for the text in question and then grabbing the text in between those tags? There might be better ways to do this though.
Note, you can update values to the htmlText property of a text box, which will allow Flex to maintain some of the styles specified from the loaded page.