selenium-rc

Controlling a web browser using Excel VBA

天大地大妈咪最大 提交于 2019-12-07 16:34:35
问题 I have been assigned the task of automating a web based task ( for a HTTPS website). The users currently are filling in the Excel sheet with the data, they now want to automate excel in such a way that it directly controls the browser and fills in the data. I found the iMacros Scripting edition as a possible solution for doing this, I wanted to know if there are any other similar tools which can be used for controlling the browser and filling in data. I also had a look at the Selenium Client

type into iframe in selenium

早过忘川 提交于 2019-12-07 10:47:04
问题 I need to type data into an iframe . I referred to Typing in a IFrame with Selenium IDE but selenium.selectFrame(<xpath>) returns: Element not found error and no css has been defined for the iframe . Using firebug: <iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, templateWizardCKEditor1, press ALT 0 for help." style="width: 100%; height: 100%;"/> What could be a solution for this? 回答1: I found a solution for the same... driver.switchTo().frame("ext

Selenium Webdriver : Reusable xml parsing class method is not working due to return type unknown

旧时模样 提交于 2019-12-06 15:29:46
问题 My objective is to Create Reusable xml parsing class concerning that return type could be array or arraylist My code is working but I wanted reusablity I am unable to create reusable class/method due to return type which could array or arraylist is not working.** 1) I have created a xml file as follows: <SearchStrings> <Search id="1111" type="high"> <Questions>What is software Testing?</Questions> <Tips>How to connect database with eclipse ?</Tips> <Multiple>Who was the first prime minister

How do we get the URL of the current page in Selenium RC for C#?

限于喜欢 提交于 2019-12-06 14:59:50
I am trying to get the URL of the current page in Selenium RC for C#. I don't want to get the href attribute of an icon, as I want to use it to compare it with the URL, the icon redirects you too. say you have defined it as IWebDriver wb; wb = New FirefoxDriver(); wb.Navigate.GoToUrl("http://gogoel.com"); then to get current url use String ptr=wb.Url; 来源: https://stackoverflow.com/questions/29569699/how-do-we-get-the-url-of-the-current-page-in-selenium-rc-for-c

Element locator use in selenium Xpath,CSS, DOM

蓝咒 提交于 2019-12-06 14:08:12
问题 When to use Xpath , CSS and DOM locator in locating the element in selenium? I want to know the different scenarios to specific use of different locators. Why can not be Xpath will be helpful in all conditions to locate the elements? 回答1: Selenium provided different locator strategies to make the code readable and performant in various situations. 1) You would use id=someId if your element has id . Using this syntax makes code more readable and simpler. 2) DOM locators are not used commonly

Hudson + Selenium plugin - Getting HTTP error 403 when running tests

二次信任 提交于 2019-12-06 13:27:47
I am trying to test my application using Selenium tool via the Hudson plugin (the one called sleniumhq plugin). As a proof of concept I decided to make a very simple test targetting google, the test is the one below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base"

Selenium RC test (PHPUnit)

霸气de小男生 提交于 2019-12-06 13:23:41
Using, Centos, Apache, PHPUnit, Selenium RC, I was trying to test selenium RC which is running in one of my server. java -jar selenium-server-standalone-2.4.0.jar Initially i got error of firefox creating profile and it doesnot load anything up and gives error. Secondly i tried to do with given profile location. java -jar selenium-server-standalone-2.4.0.jar -firefoxProfileTemplate "/root/.mozilla/firefox/" & still it shows error ERROR - Failed to start new browser session, shutdown browser and clear all session data INFO - Got result: Failed to start new browser session: Error while launching

Selenium RC WaitForPageToLoad Hangs

此生再无相见时 提交于 2019-12-06 12:43:28
问题 I am trying to get Selenium RC up and running for doing some automated testing on my website. I am finding that I constantly want to verify that I haven't broken any features, and manual testing is starting to become tiresome. However, I can't seem to get Selenium RC to work with WaitForPageToLoad. I tried copying the basic example that they give in the selenium documentation, but the test always gets stuck at: $this->waitForPageToLoad("30000"); I can see that it gets that far in the window

Jacoco and Sonar code coverage?

故事扮演 提交于 2019-12-06 09:39:10
问题 Using : JaCoCo 0.5.3, Maven2, Sonar 2.14, sonar-maven-plugin 1.8, SùartGWT 3.0 Currently trying to : Get code coverage on Sonar of my Selenium unit tests. Problem : Code coverage doesn't move from 0% although the sensor is launched properly, analyse the jacoco.exec which is correctly generated. Ressources : https://gist.github.com/2888912 The pom.xml It's been about 2 weeks I'm trying to get code coverage. I upgraded the Sonar from 2.10 to 2.14, changed every single sonar property, tried the

Issue running Selenium IDE test suite using Selenium Standalone server

被刻印的时光 ゝ 提交于 2019-12-06 08:51:01
问题 I am try to follow following references to run the selenium IDE test suites on standalone server . My ultimate purpose is to run headless data-driven tests on ubuntu. Selenium RC with DataDriven Running Tests from command line Selenium Headless tests on Ubuntu So after looking into these tutorials I have setup very simple test suite and trying to run from command line e.g java -jar ~/selenium/selenium-server-standalone-2.39.0.jar -userExtensions user-extensions.js -htmlSuite "*firefox" http:/