Questions tagged [selenium-rc]

Selenium Remote Control - Answer to UI level functional test Web automation

Selenium Remote Control (RC) overcomes the drawbacks imposed by Selenium IDE, i.e. -

  1. Ability to run tests against multiple browsers and not having them limited to only Firefox
  2. Ability to use a real-world programming language rather than using the Selenese constructs of IDE which have very limited programming capabilities
  3. Ability to integrate tests with a variety of programming frame works like - TestNG and JUnit in java
  4. Ability to integrate test with continuous build integration
  5. Ability to execute test in parallel against multiple browsers

Selenium RC contains two entities -

  1. Selenium Server - which is written in Java. Hence you need Java on your system to be able to use Selenium RC and
  2. Selenium Client Drivers - which provide capabilities to write Selenium tests in a variety of languages i.e. - Java, C#, Python, Ruby, Perl, etc.

Selenium Server reads the client instruction and contacts the application server. On receiving a server response it modifies the response, inserts Selenium JavaScriptcode and serves the page back to the browser. Now tests written using the client driver of Selenium interact with the application and arrive at conclusions about the application state to validate it against a predefined set of expected results.

You can download the latest Selenium Standalone server from here.

For more on Selenium RC, refer here.

Selenium RC has officially been deprecated in favour of the more modern .

1388 questions
0
votes
2 answers

Selenium RC - Unable to click on a link using XPATH / CSS path / //a[contains(text(),'abc')]

Selenium IDE is able to recognise the ID, Xpath, CSSPath for a link. But, Selenium RC is unable to click on the link using XPath or CSSPath or ID. I have also used "Contains Text()", but of no use. Please find below code that i am currently…
HemChe
  • 2,249
  • 1
  • 21
  • 33
0
votes
1 answer

How can I run the selenium test case?

I wrote a selenium sample test case in my application. Then I right click the file and select "Test File". It results Testsuite: com.MyApp.SampleSeleniumTest Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.265 sec Testcase:…
Gnik
  • 7,120
  • 20
  • 79
  • 129
0
votes
1 answer

Get

I am using selenium rc and exetuing selenium.getText("//div/div[2][contains(@id,'gp-PACKAGE NAME-')]/div["+i+"]/table/tbody/tr/td["+1+"]/div") I have to execute this command for 20-30 rows for which it takes 20-30 mins. I would like to get dom…
sirfak
  • 11
  • 3
0
votes
1 answer

How to use selenium.type if there are many labels with same notation?

i'm working with Selenium RC and coding with Java , my problem is the selenium.type ,My screen contains many labels with the same notation so when i use the method : selenium.type("//span[text()=\""+remplace+"\"]/following- …
asmae
  • 31
  • 1
  • 1
  • 6
0
votes
1 answer

Cannot load custom profile python - selenium

fp = webdriver.FirefoxProfile() fp.set_preference("browser.download.folderList", 2); fp.set_preference("browser.download.manager.showWhenStarting", False); fp.set_preference("browser.download.dir",…
Giorgos Komnino
  • 433
  • 1
  • 7
  • 20
0
votes
1 answer

Selenium opens firefox and stops all processes

i am automating a process on firefox using selenium with c# .NET4.0: static void Main(string[] args) { selenium = new DefaultSelenium("localhost", 4444, "*firefox", "https://www.microsoft.com/"); selenium.Start(); …
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
0
votes
3 answers

jQuery - attribute value undefined

Html code of an svg element : Just as a POC, $('image').attr('xlink:href'); does return…
aradhak
  • 836
  • 1
  • 9
  • 22
0
votes
1 answer

selenium server time out issue

i have installed selenium IDE and selenium server(selenium RC)...while running the test cases in command prompt using phpunit its saying error like Invalid response while accessing the Selenium Server at …
0
votes
1 answer

Batch file not executing through windows service

I have a scenario in which i have to create a windows service which will check that if the batch file is not running then it should execute that batch file. Moreover, my batch file is used for automation using Selenium for Application checkout. When…
Sumit Gupta
  • 569
  • 1
  • 11
  • 33
0
votes
1 answer

Selenium RC - Getting Null Pointer Exception after exceuting my test script

I am Using a assertTrue statement in the web app testing,even the text is present in the web its returning false. How can I fix this? public void Test1() throws Exception { Selenium selenium = new…
0
votes
1 answer

extract a value from a text field using selenium RC and java

I'm using Selenium + Java bindings and I want to know if anyone has an idea how to extract a value from a text field. I tried the following code, but without success: String value = selenium.getValue(lss.get(i)) logger.info("ma val :" +…
asmae
  • 31
  • 1
  • 1
  • 6
0
votes
1 answer

Taking snapshots of different webpages using selenium in java

I have a list of URLs and I need to take their snapshots . I am running selenium server using cmd and running following code in eclipse. package com.example.tests; import com.thoughtworks.selenium.DefaultSelenium; import…
user801154
0
votes
1 answer

Taking webpages snapshot using selenium server in java

I need to take snapshot of webpage and for that I am using selenium RC (this is good choice right ? )with eclipse for java language . I am using it as JUnit test case . Here is my code. package com.example.tests; import…
user801154
0
votes
1 answer

"Session XXXXXXX does not exists" is shown when executing selenium scripts remotely

I get the following errors: 2012-07-04 15:33:36,582 INFO root:68 - at TestRunner.main(TestRunner.java:57) at TestRunner.startTests(TestRunner.java:108) at org.testng.TestNG.run(TestNG.java:1006) at…
0
votes
1 answer

How to run selenium tests as part of maven build phase using Tomcat

i wanna to realize this steps : 1-Start the tomcat server 2-Deploy the war 3-Start the selenium server so i used this code in my pom.xml file:
Amira Manai
  • 2,599
  • 8
  • 40
  • 60