Selenium-webdriver on Ruby 1.8.7 - ruby-on-rails

Is there a setting where you can update the homepage when it opens a new browser?
For newer version of selenium-webdriver, it actually opens a blank page. This is what i need right now, but i cant use it since the website im working is on 1.8.7.
Im having problems with the older version because it opens a page and timeouts because I'm using a machine without an internet. (I need to use this machine)
I'm currently working with phantomJS btw. I checked it with firefox, it opens mozilla.org even though my default page infirefox is a blank page.
The .start(url,browser) doesn't work since it will open first the browser before going to the url.

Already fine with phantomjs. I thought it was an issue with an older version. In phantomjs, it really opens a blank page.
Newer version of selenium-webdriver, starts firefox with a blank page. While the lower version I use still have issues firefox.

Related

MVC bootstrap carousel firefox issue

I'm using bootstrap carousel, and it works fine in chrome and explorer, but for some reason in firefox 35.0.1, when the image loads it only loads half of the image than the rest takes longer to load. Anyone have a problem with this in firefox? I'm surprised firefox is the problem here, since it is usually IE that I have issue with. The problem just started with this new version of firefox.
You are not the only one. We've seen this across multiple Windows boxes with FF 35.0.1. We've not tried this on a Mac, though. Can confirm this problem exists, and am really glad we're not the only ones who've noticed it. It's a consistent issue, regardless of caching or network speed.
Great news!: It's been fixed in Firefox 36! Try updating your browser. Here's the Bugzilla which should have addressed the problem: https://bugzilla.mozilla.org/show_bug.cgi?id=1125077

Rails app on heroku: blank pages on a specific computer

I have a fairly vanilla Rails application on heroku that works fine ... except on my Dad's computer. It is Windows 7, and the site always shows as a blank page. I have checked the following:
Both Chrome, Firefox and IE (latest versions) all exhibit the problem. Web inspector on Chrome and FF shows either a 200 or 304 response code, but blank body.
I have tried clearing the cache.
Curl on his machine successfully downloads the page.
My laptop on his network views the page fine.
His laptop on other networks still exhibits the problem.
His other laptop works fine.
Multiple other machines (5+) work fine.
Server logs show a successful response being served.
Turned off Microsoft Security Essentials.
Turned off the firewall.
I'm stumped. What other debugging steps should I try?
For reference, the site is http://gccc.herokuapp.com/
Solution from twitter: https://www.malwarebytes.org/ picked up a couple of Trojans that were causing issues. I had assumed "Microsoft Security Essentials" was doing this, but I guess that is something different.

How can I activate the Firefox debugger?

While debugging a JavaScript program I was writing with Firebug, the Script panel stopped working and I got the following message:
I went through all menus and sub-menus I could find but didn't see a option to re-enable this feature. The console.log() command doesn't work in Firebug as well (while it does work in the built-in devtools' console).
How can I re-activate the Firebug Script panel? What may have caused this?
This may have different causes. One of them is described in issue 5646, which is related to going back and forward in the browser history.
In such cases it normally requires a browser restart to work again.
Note that Firebug up to version 1.12 is based on an old debugger API exposed by Firefox called JSD, which is unmaintained and buggy. Since version 2.0 Firebug uses a new debugger API, which fixes this problem.
Coincidentally, I just "fixed" the same problem with my Firebug.
I went through re-installs, options resets and such and nothing helped.
After some investigation it boiled down to the content of the page I was debugging.
I have a function called by jQuery when page load is finished:
<script>
$(onPageLoad);
</script>
Now, this function asks user to enter his name using prompt() function. It appeared that Firebug wouldn't activate script panel until prompt() is closed. That is not a problem when you have just one page opened since you just close the dialog and everything works. However, it is a problem when you have two same pages opened. Script panel is non-operational until you close both prompts.
I was facing this problem recently. I found that my Firebug was not getting updated because my Firefox was stuck on 29.x. Once I updated my Firefox the new Firebug got installed. It supports only Firefox 30+.
Note: I was using OSX v1.9.3.
I was having same problem, and, thanks to Roman Guralink, I figured out that the the dialogue Firefox prompts you to insert the master password was the cause. When you set a master password for all password stored, FFox usually opens a dialogue to ask it just after program started. BUT, sometimes this dialogu goes behind the main window, and you don't notice it is there.

Typekit and #fontface issues on all Windows browsers with Ruby on Rails app, especially Chrome

My Ruby on Rails app hates custom fonts and I don't know why. Here are some of the errors and troubleshooting that I have gone through.
First, there were devastating display errors that only happened on Google Chrome on a PC. The text will overlap, paragraphs within the same div will have different widths, buttons will have shortened width, a copy will shift to the right on the page...to the point where some of the sites are unusable. I finally figured out that the browser seemed to not be understanding the font correctly. If I used websafe fonts like Arial and Georgia, the issues went away. So I thought that maybe the #font-face fonts that live on my server were corrupt. The Chrome issue also only appeared to happen on later versions of Chrome (20 and up). The weirdest part about this is that it only happens intermittently. Sometimes the page displays fine and sometimes it looks crazy. This has occurred on multiple computers and cache clearing does not seem to affect the error.
I then integrated Typekit from Adobe to serve the fonts instead from their server. Now the display errors are gone, but all Windows browsers ignore the typekit font and display the fallback fonts instead. That's IE, Firefox, and Chrome on Windows, various versions.
The site is part Ruby on Rails, part PHP (WordPress), and these issues only happen on the Ruby on Rails pages. The font files that I thought were corrupt are the same font files that work beautifully on the PHP side of the site.
Here are some screenshots of the initial Chrome issue with the server hosted fonts.
The site currently has the server hosted fonts live (with the Chrome error). A page on the site where this is happening: http://levoleague.com/jobs
Any ideas on why my app rejects fonts?
Looks like it's a CSS issue and you need overflow-wrap: break-word;

Why SlickGrid column picker hangs in Rails 3 application?

I'm trying to integrate SlickGrid in my Rails 3 application.
I use the latest Firefox on Windows XP.
Everything was fine until I added the column picker according to this example.
Now, when I right click one of the header cells, I do see the column picker. But, when I click one of the check boxes, Firefox hangs.
Any ideas what could be the problem, or how to debug this ?
UPDATE
I noticed that if I remove the width parameter from all columns, everything works fine!
If you plug SlickGrid into static html not served by rails, does it still not work?
I suspect that this isn't an issue with Rails, unless the javascript isn't being loaded into your page.
Which version of firefox are you using?

Resources