selenium-rc

selenium.open() becomes unresponsive in an iterative test

∥☆過路亽.° 提交于 2019-12-20 07:29:15
问题 I have a set of test steps that I have to execute with different parameters. I have scripted this in Eclipse/TestNG, driven by the parameters supplied via an excel sheet. Now, the test steps involve setting the property of a page, and then opening another page to confirm that the property is set. So, in effect, I use a simple selenium.open("my_first_url"); at the beginning of the test, set the property, and then another selenium.open("my_second_url"); to open the other url where the assertion

XPath or CSS in Selenium RC with Java is not working

爱⌒轻易说出口 提交于 2019-12-19 11:34:18
问题 I am trying to automate the following scenario with selenium RC: Open Google home page and enter "Software" in search box and then click on search button. Click on the first link of multiple links retrieved by Google search. As I don't see either name or id attributes for these links and as this link's content is dynamic, I am trying to use XPath or CSS. From Firebug, I got XPath and also CSS by right clicking then copy XPath, copy CSS. XPATH:/html/body/div[2]/div/div/div[6]/div[2]/div/div[2]

Selenium Test - preserve session across multiple test runs

不想你离开。 提交于 2019-12-19 10:04:37
问题 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

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

安稳与你 提交于 2019-12-19 06:28:31
问题 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

Testing a Facebook Connect application using Selenium?

不羁岁月 提交于 2019-12-19 03:13:44
问题 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? 回答1: 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

Understanding Selenium IDE vs Selenium RC

╄→尐↘猪︶ㄣ 提交于 2019-12-18 13:37:46
问题 What is the difference between Selenium IDE and Selenium RC with its functionality? 回答1: Selenium IDE is a firefox plugin that gives you a basic recorder for recording tests. These tests are recorded in an HTML table based architecture using keywords, and IDE gives you the ability to then export the code out to other languages (Java, .Net, PHP, Python, Ruby, or Perl). Selenium RC is an API accessible from multiple languages. Rather than recording tests, you write programs that call into the

Selenium IDE: How to Pass Variables

爷,独闯天下 提交于 2019-12-18 11:40:52
问题 I have 3 different accounts in a website that I want to login and print a report every single day. I've done a Selenium IDE recording that allows me to login and print the report, however, every day I have to change the variable 3 times (for the 3 different usernames and passwords). How can I pass a variable to the "value" field of the "type" command? Thank you. Best, 回答1: You can go with parameterization For parameterization you need to create js file For eg. Js file contains var username =

How to close a browser on a selenium RC server which lost it's client

穿精又带淫゛_ 提交于 2019-12-18 11:34:57
问题 suppose a client starts a selenium session on an RC server, but at the middle of the session the client "went away". The browser will remain open, and eventually, after enough such dropped sessions, there will be enough "orphan" browsers to slow down the computer. How can I make sure those browsers are closed? Why isn't there a "keep-alive" part in the protocol to make sure the client is still responsive and if not kill the session? 回答1: Any browser instance has a session_id you can store.

Selenium is not able to launch the IE.

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 10:26:29
问题 Selenium is not able to launch the IE. 10:56:25,005 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*iexploreproxy, http://192.168.132.105:8080/, ] on session null 10:56:25,005 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 10:56:25,005 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 9fa93fe865904e3da895c91a86ebdcb0 for http://192.168.132.105:8080/, launching... 10:56:25,005

Selenium - Custom Firefox profile

天涯浪子 提交于 2019-12-18 09:23:55
问题 I've setup a new firefox profile for use with Selenium (accepted certificate warnings for local QA site). But, I keep getting told the profile directory does not exist. This is the line from my batch file java -jar selenium-server.jar -firefoxProfileTemplate ~/"C:\Documents and Settings\dadams\Application Data\Mozilla\Firefox\Profiles\k39jzisz.SeleniumUser" but the message I get is: Firefox profile template doesn't exist: C:\Installs\selenium-remote-control-1.0. 3\selenium-server-1.0.3\~\C: