web-testing

Web Testing for IE. How accurate is IETester?

蹲街弑〆低调 提交于 2019-11-28 16:43:48
问题 I am using IETester for testing web sites with IE. I find it quite frustrating that it crashes frequently. More importantly, it does not seem to be too reliable. Sometimes, a site looks broken in IETester's IE8 but looks fine in real IE8. (I suspect that HTML5Shiv didn't load correctly in IETester at times) Anyone experiencing the same problems? What alternatives do you use? I once resorted to using Windows 7's XP Mode to run IE7 then use Windows 7's IE8 (meaning) that I didn't upgrade to IE9

Use Selenium with Chromium Browser

我的梦境 提交于 2019-11-28 08:20:27
In the Selenium options (on Firefox) I can find Custom browser . Is it possible to use this option to run a Selenium test in Chromium Browser (not Chrome)? yes. for chrome use DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*custom path/to/chromium" , "www.google.com"); selenium.start(); The other options that you can use are *custom, *chrome(note: this is not Google chrome, its a firefox mode only), *googlechrome, *iexplore. Please check selenium documentation for complete list of the modes. EDIT: Changed googlechrome to chromium Uh, the accepted answer doesn't answer the

Watir: Need to double click on an element to open custom popup

六眼飞鱼酱① 提交于 2019-11-28 05:55:25
问题 I am a newbie in WATIR. The problem I am facing is - The application I am testing has thumbnails (like Windows icons) placed on the page and I need to double click it. On doing that, an custom popup (ajax popup implemented in javascript) will open. The fire_event("ondblclick") is not working for me. I also tried 'click' twice but that too is not helping. Is there any other way of handling this? Your help is highly appreciated. Added 6 July 2010: I solved it but I have another query now. Below

How to use Selenium with PHP?

大憨熊 提交于 2019-11-27 07:41:10
I'd like to use Selenium to automate a few web tasks (not for testing). I think I have Selenium RC Server installed, but have no way of writing "test scripts" since I can't find a client driver in PHP (see: http://seleniumhq.org/download/ ). Is there a way for me to use Selenium with PHP? This seems to suggest I need PHPUnit http://www.phpunit.de/manual/current/en/selenium.html . I just want to automate a few tasks, not get involved with a full suite of testing. Try Following things Get Phpunit installed and working Also have JAVA sdk & jre on your pc. Now record test cases using selenium IDE.

How to disable Flash in Firefox with Selenium in Python?

爷,独闯天下 提交于 2019-11-27 06:15:39
问题 Trying to disable Flash in Firefox with Selenium in Python, using profile settings. This question specifies a way to do it through the GUI, but it would be better for this particular use case to do it programmatically. Specifically, the best possible solution would allow Flash to be disabled in a newly created profile object. Thanks very much! 回答1: You can disable flash using the below profile. from selenium.webdriver.firefox.firefox_profile import FirefoxProfile def disableImages(self): ##

How to use Selenium with PHP?

孤者浪人 提交于 2019-11-27 03:59:41
问题 I'd like to use Selenium to automate a few web tasks (not for testing). I think I have Selenium RC Server installed, but have no way of writing "test scripts" since I can't find a client driver in PHP (see: http://seleniumhq.org/download/). Is there a way for me to use Selenium with PHP? This seems to suggest I need PHPUnit http://www.phpunit.de/manual/current/en/selenium.html. I just want to automate a few tasks, not get involved with a full suite of testing. 回答1: Try Following things Get

Use Selenium with Chromium Browser

∥☆過路亽.° 提交于 2019-11-27 02:09:49
问题 In the Selenium options (on Firefox) I can find Custom browser . Is it possible to use this option to run a Selenium test in Chromium Browser (not Chrome)? 回答1: yes. for chrome use DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*custom path/to/chromium" , "www.google.com"); selenium.start(); The other options that you can use are *custom, *chrome(note: this is not Google chrome, its a firefox mode only), *googlechrome, *iexplore. Please check selenium documentation for

Any suggestions for testing extjs code in a browser, preferably with selenium?

微笑、不失礼 提交于 2019-11-26 06:03:52
问题 We\'ve been using selenium with great success to handle high-level website testing (in addition to extensive python doctests at a module level). However now we\'re using extjs for a lot of pages and its proving difficult to incorporate Selenium tests for the complex components like grids. Has anyone had success writing automated tests for extjs-based web pages? Lots of googling finds people with similar problems, but few answers. Thanks! 回答1: The biggest hurdle in testing ExtJS with Selenium