How to ignore a div in Web Driver screenshot comparison - webdriver-io

The bounty expires in 2 days. Answers to this question are eligible for a +50 reputation bounty.
Steve wants to draw more attention to this question.
Using Web Driver, we compare website screenshots to ensure nothing has changed since the last test run.
However, part of the page is a carousel with dynamic content. In pretty much every comparison, this carousel is flagged as different from the baseline screenshot.
Is there a way we can specify a div (containing the carousel) to ignore in screenshot comparisons?
I've checked the docs and there is nothing about this when searching using the search term ignore.

Related

Kimono labs - extracting data from a page that scrolls

I am trying to extract data from a research platform, the first x number of responses show on the page but when I try and scroll down the page to teach Kimono to extract the other responses it cant seem them thus just provides the first page.
Pagination doesn't work as the research platform is presenting a single page which is scrollable.
Anything I can do to teach Kimono to find the additional responses.
They eliminated infinite scrolling capabilities mid 2015 so theres really no way.

Apache FOP - Extra content at the end

I have a simple task, which I've found quite complex to implement with Apache FOP.
I have already created some layout. So I do have nice first page, only page, rest pages and last page definitions with well distributed content on it, but now I need sometimes add to the end of the document some extra content (like Terms and conditions, or Agreement conditions) which sometimes takes even few pages. That content shouldn't have any header, footer, page number etc... Just a text flow with paragraphs.
Thank you.
Kind regards.
As I am new to FOP I haven't recognized well FOP capabilities posting my question here.
So I've sorted out the issue with new page-master and new page-sequence definitions.

How do I include a picture in a page element in Inquisit?

I'd like to include a picture in a page element in an Inquest script: is this possible?
If so, how would you do it?
I know this question was asked 8 years ago...but I recently had the same question. So I thought maybe I could put something here in case someone in the future would have a similar question.
You cannot add a picture to the page element in Inquisit 5, but it would be possible in Inquisit 6. For Inquisit 5, you'll have to use or .
Here's some discussion on this: https://forums.millisecond.com/Topic34836.aspx
There is some discussion here.
In general, it seems that the page element only allows for simple text based instructions.
If you want to present images in instructions, there are a few options.
htmlpage element
You can use the htmlpage element, which allows for instructions to be a complete formatted HTML file that can include images.
The htmlpage element is used to define pages of text to be displayed
as instructions using the preinstructions or postinstructions
attribute. The htmlpage element is useful when complete control over
formatting and content of instruction pages is required, otherwise the
page element provides an easier way to display text with basic
formatting. The actual content of the page is contained in a separate
HTML file located on the local machine or the web. source
Picture or picture and text in a normal trial
The other option is to present instructions as normal stimuli in the main trials of a block.
See for example, the instructions in the sample script for the Iowa Gambling Task.
This can be either done as one integrated picture that includes text, or each image can be positioned as it's own stimuli.

Same url with two title in google search result

"Mogral ಅಥವಾ മൊഗ്രാല്‍" was my website's (http://mogral.in) old title.
Since the title contains the words from another language, I felt it will badly affect the position in the search result.
So I changed to new title; contains only english words.
See this query; it shows old title:
https://www.google.com/search?q=Mogral+ಅಥವಾ+മൊഗ്രാല്‍
See this query it shows new title:
https://www.google.com/search?q=mogral+football+mappilapattu
Why it shows same url with two title?
One more problem is that google add the old titles to pages with malayalam-language titles
See https://www.google.com/search?q=site:mogral.in
I submitted the sitemap for all mogral.in/news/* only after changing the old title.
Why it is happening? how to solve it?
First question would be how long ago did you make the change? It takes time for any changes to be reflected in SERPs. Also, I don't see your site when I use your query examples - I see this post. So, the changes may be getting updated now.
Finally,a sites title and meta tags are suggestions for google, not the rule. Google tries to improve CTR (click through rate) so many times for particular search terms, a modified version of your title and meta description will be displayed in the search results.

Is there a defined answer to whether hiding an H1 tag will get a site banned by Google?

I have been researching this for a few hours and I feel that I can't decide on what is right or wrong. This was asked before on Stackoverflow, but a couple of years ago so I thought I could ask again. I want to include H1 tags on my pages but hide them, because I have graphic in my banner, but I was taught to use an H1 tag for accessibility reasons.
I discovered that this can be considered SEO spamming and can get a site blacklisted, I do not want this. It was also discovered that using H1 tags can greatly increase the sites SEO when using relative headers.
So I want to use them and hide them, for two reasons, but avoid Google blacklisting my site, is there a standard accepted method to doing this, or will I need to choose between risking blacklisting and helping those with visual disabilities a better user experience?
Thanks in advance for any advice.
The simplest method is just to include the image with an alt attribute in the h1:
<h1><img src="banner.png" alt="my banner text" /></h1>
And you can be assured that you won't be penalized for that. I have not seen any definitive information that doing image replacement will result in a higher ranking than using alt properly. Like most SEO lore, there is very little data. That said, as long as you are not trying to game the search engines and present something different to the user and the search engine, it's unlikely you'll be penalized for using image replacement.
If you do do image replacement, be sure to position the text off-screen by using absolute positioning or negative margins rather than display: none or visibility: hidden so that screen reader users can access the content.
You're not improving accessibility if you hide headings.
If you do so with display: none; or visibility:hidden;, it's as if you never added them in the first place: they won't be read by screen readers and obviously won't be displayed if CSS are enabled.
If you do so with negative text-indent or left absolute positioning, only blind people will read them but not partially-sighted people that don't use any screen reader, and they're way more than blind people (perhaps 10 times).