issue with cy.scrollTo('bottom') - automated-tests

I'm trying to scroll to the bottom of the page using the cy.scrollTo('bottom') command but getting the following error-
"cy.scrollTo() failed because this element is not scrollable: <window>"
I've tried cy.window.scrollTo('bottom') but this is also throwing the same error.
Could you please help? and what's actually meant by 'scrollable'?

Maybe you can use this cy.scrollTo or .scrollIntoView and you can learn that by watching this video

Related

Browser Displaying Plain Text

When I view the site www.redfuryrevenge.com with a browser, I see only plain text, as if there is no CSS. When I view it locally using Macrabbit Espresso preview, it looks fine. I tried finding the error using Firefox console, debugger, etc., but nothing pops up for me.
I've never seen anything like this (except for a missing CSS file reference).
Please advise.
it seems that for some reason you need to put the full root.
You can fix it adding the ./
Use the following syntax:
href="./css/style.css"
I've tried it and it should fix your issue

LightBox2 producing error

Site: http://www.onlinetestspace.com/project45/before-after
I have followed lightBox instructions http://leandrovieira.com/projects/jquery/lightbox/ and chrome is giving me the error:
Uncaught TypeError: Object # has no method 'lightBox'.
Can somebody please help me out?
I just investigate the things and i guess you are using old version of JQuery file (jQuery 1.2.3). Use the latest version of JQuery file and this will fix your problem.
The reason I was getting this error, was simply because of 2 conflicting files.

RequireJS text! plugin and Load timeout

I'm using the text! plugin with RequireJS and Firefox seems to hate my text templates. My code seems to work just fine in Chrome and Safari. Here is the error I get.
Error: Load timeout for modules: text!templates/a.html_unnormalized2,
text!templates/b.html_unnormalized3,
text!templates/c.html_unnormalized4, // _unnormalized# <- What is this?
...
text!templates/n.html, // I don't see _unnormalized here... why?
text!templates/o.html,
text!templates/p.html,
...
http://requirejs.org/docs/errors.html#timeout
First, what does the _unnormalized# mean? It seems to append itself to the file name for some of my templates but not all. However, all of my templates are listed in the error message.
Looking at the Net inspector, it seems to be downloading the necessary template files.
I think I figured it out part of the mystery, although I'm not sure about the details. I noticed that this error occurs when I'm using Firebug and in the console options, ShowXMLHttpRequests is turned on. By turing this option off, the page loads without a hitch.
What do you think guys, is this a Firebug problem? Or a requireJS issue? I'd love to understand why this occurs.
In my case, if I just disable the "Script" tab of FireBug, I have no more freeze or time out error.
Firefox 27.0.1
Firebug 1.12.7

'Undefined function' in fresh WordPress install?

I've been having a problem with my media browser for weeks and haven't been able to solve it. When browsing to insert an image, the media library shows absolutely nothing, just blank white. I see tabs telling me that it sees the objects in the library, but they do not display as thumbnails to select.
For some reason it just occurred to me (a-doy) to look at my server logs - turns out my ISP has been suppressing PHP errors. The error I'm getting is this:
PHP Fatal error: Call to undefined
function get_post_thumbnail_id() in
REDACTED/wp-admin/includes/media.php
on line 1292, referer:
http://REDACTED/wp-admin/media-upload.php?post_id=877&type=image&
Now this is baffling - I did a completely fresh install of WordPress to try and solve this problem, and yet I'm still getting an "undefined function" error. Why is this happening, and how can I fix it?
Any help is greatly appreciated. Thank you!
It looks as if you have to initialize theme support before get_post_thumbnail_id() can be used.
<?php add_theme_support('post-thumbnails'); ?>
http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
Make sure that your add_theme_support('post-thumbnails') function is run before init. I know this has screwed me up when I had it in a hook tied into init.
If it has to be hooked in, it should be hooked into after_setup_theme

umbraco tiny MCE 3 internet explorer insert link error

I have an instalation of Umbraco 4.0.2.1. In internet explorer (6 / 7) i get an error when trying to insert a link using the tiny MCE rich text editor. basicaly what happens is i can choose the node in the site i want to link to but when i click insert it reloads but the tiny MCE popup does not dissapear and i get the following page error.
Line: 368
Char: 9
Error: 'the Form._SCROLLPOSITIONX.value' is null or not an object
code: 0
URL: "mydev server"/umbraco/plugins/tinymce3/insertLink.aspx
I dont get this problem in Firefox and i have other instalations of umbraco 4.0.2.1 in which this error does not occur. I have tried using WinMerge to comparing the code of the two instalations and they seem identical in all the places i can think would have an effect on tinyMCE ("bin", "umbraco_client\tinymce3", "umbraco\plugins\tinymce3")
I am pulling my hair out over this and any help would be very much appreciated.
I'm not sure about this, but at first glimps I noticed the URL in the error message:
"mydev server"..
My guess: the javascript code cant handle the quotes in the url.
possible solution: remove the space from your server name.
again, its just a guess, hopefully will solve your problem.

Resources