selenium-rc

Selenium Test - preserve session across multiple test runs

China☆狼群 提交于 2019-12-01 08:45:24
I have the following issue. When I start my selenium test, to get to the part where the actual test is performed, I need to start the browser, log in, do some other operations, and then it comes the part I want to test. Isn't there a way to do the first part only once, leave the session and the browser open. And for a next test Run only continue this session, without starting up. So basically I would have a test initializing, and leaving the session open. And other tests which use this initialized session, reuse the session every time. I am using Java, and Selenium RC. Thanks! It depends a bit

PHPUnit Selenium captureScreenshotOnFailure does not work?

倖福魔咒の 提交于 2019-12-01 06:46:32
I am using PHPUnit 3.4.12 to drive my selenium tests. I'd like to be able to get a screenshot taken automatically when a test fails. This should be supported as explained at http://www.phpunit.de/manual/current/en/selenium.html#selenium.seleniumtestcase.examples.WebTest2.php class WebTest { protected $captureScreenshotOnFailure = true; protected $screenshotPath = 'C:\selenium'; protected $screnshotUrl = 'http://localhost/screenshots'; public function testLandingPage($selenium) { $selenium->open("http://www.example.com"); $selenium->fail("fail"); ... } } As you can see, I am making the test to

PHPUnit Selenium captureScreenshotOnFailure does not work?

做~自己de王妃 提交于 2019-12-01 05:27:36
问题 I am using PHPUnit 3.4.12 to drive my selenium tests. I'd like to be able to get a screenshot taken automatically when a test fails. This should be supported as explained at http://www.phpunit.de/manual/current/en/selenium.html#selenium.seleniumtestcase.examples.WebTest2.php class WebTest { protected $captureScreenshotOnFailure = true; protected $screenshotPath = 'C:\selenium'; protected $screnshotUrl = 'http://localhost/screenshots'; public function testLandingPage($selenium) { $selenium-

Jenkins can't launch selenium tests (Timed out waiting for profile to be created)

房东的猫 提交于 2019-12-01 03:41:30
Jenkins can't launch selenium tests (ubuntu) error 11:26:24.652 INFO - Started org.openqa.jetty.jetty.Server@ab50cd 11:26:24.738 INFO - Preparing Firefox profile... HTML suite exception seen: java.lang.RuntimeException: Timed out waiting for profile to be created! at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:360) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:114) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher

How to click in a specific part of a Button using Selenium, for the list of options to be displayed?

五迷三道 提交于 2019-12-01 00:48:57
<table id="ext-comp-1389" class="x-btn x-btn-text-icon " cellspacing="0" style="width: auto;"> <tbody class="x-btn-small x-btn-icon-small-left"> <tr> <tr> <td class="x-btn-ml"> <td class="x-btn-mc"> <em class="x-btn-split" unselectable="on"> <button id="ext-gen128" class="x-btn-text create" type="button">New</button> </em> </td> <td class="x-btn-mr"> <i> </i> </td> </tr> <tr> </tbody> </table> Above is how the HTML element is embedded..! The HTML element is a 'New' button with a '+' sign next to it...If, I click on the '+' only, I can get the menu options, which are something like, 'D', 'P',

Selenium WebDriver and Selenium server

我们两清 提交于 2019-12-01 00:19:59
I need your help to wire things related to selenium. Now over the past few weeks I have been reading about Selenium documents. There is selenium IDE (a firefox extension for record and replay tests) Selenium RC - (selenium 1.0). This seems to be deprecated now and uses a proxy HTTP server to run test on multiple browsers. Selenium Web Driver - (selenium 2.0). This is the latest one and one which should be used now for automated tests. (Each browser implements Web Driver API) I also read that web driver interacts with native browser support for automation and does not require HTTP server. Then

Facebook test accounts using selenium - failing to log in my fake users

北城余情 提交于 2019-12-01 00:12:35
I am programmatically creating test accounts, and then immediately trying to log in w/ them using a selenium driven browser. Unfortunately, the browser is just redirected to the facebook homepage. I can briefly see what appears to be the correct url prior to the redirect flash by, so I have no reason to believe the browser isn't going where I intend it to. That said, if create a fake account, and then just paste the login_url into a browser, things work fine. Anyone have any idea why that might be unique about using Selenium here? Is there anything I need to do to prepare the browser for https

Testing a Facebook Connect application using Selenium?

戏子无情 提交于 2019-11-30 21:01:05
Does anyone have experience using Selenium to automate testing of a webapp that uses Facebook Connect for user login? Any tips or methods that you recommend? Depends what you want to do? Will you be using a real-real Facebook User (which is phone verified by Facebook)? Safest and most reliable ,but very difficult ( impossible ) to gather "real" users (phone verified by FB). In terms of defining aspects of the user/connections details, like education history, work history, name, age etc(specially if you do not have access to all the "real" facebook accounts). Fake facebook users created for

Is it possible to run Selenium scripts without having an X server running, too?

邮差的信 提交于 2019-11-30 19:39:31
I have a python script that uses selenium RC; specifically webdriver. I would love to have the script run as a post-commit hook, ideally through IE, Safari (if possible), Chrome & Firefox. But I'm not sure what I'd need to do, since every time I run it on my local machine, a browser pops up. I've heard of "saucelabs". Is it the best solution? plaes Yes, you need to have X server running because Selenium requires a running browser and browsers need some kind of X server in order to run. Fortunately there are many types of X servers and one of them is Xvfb aka X virtual framebuffer that does all

Selenium WebDriver and Selenium server

荒凉一梦 提交于 2019-11-30 19:07:44
问题 I need your help to wire things related to selenium. Now over the past few weeks I have been reading about Selenium documents. There is selenium IDE (a firefox extension for record and replay tests) Selenium RC - (selenium 1.0). This seems to be deprecated now and uses a proxy HTTP server to run test on multiple browsers. Selenium Web Driver - (selenium 2.0). This is the latest one and one which should be used now for automated tests. (Each browser implements Web Driver API) I also read that