selenium-rc

How do you test a reactjs web app with selenium?

北城余情 提交于 2019-12-04 21:00:59
问题 I have a web app using React and I'm trying to create some tests using Selenium RC. I'm finding though that when Selenium changes the values of fields, events are not properly fired. I know this is a somewhat typical problem as evidenced by the WebDriver FAQ and I've tried a bunch of different things like using onFocus instead of onChange and making sure the focus was changed in and out, using sendKeys() vs type(), programatically calling the event, and any other suggestions I could find

Selenium RC WaitForPageToLoad Hangs

心已入冬 提交于 2019-12-04 20:23:56
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 that it brings up and that the page appears to have loaded correctly (we are at a google search result

Why is Selenium RC so slow?

别说谁变了你拦得住时间么 提交于 2019-12-04 18:30:38
问题 For some time I have been investigating Selenium RC in order to do functional testing of my web application. I have now found a test strategy that is so effective, that I do not want to move away from Selenium RC (after spending weeks trying to figure out a good way to validate ASP.NET validation controls). But now that my Selenium RC adventure is moving from a POC to be something that I actually use, I'm running into a problem. It is insanely slow. Executing a single test that loads a page,

Jacoco and Sonar code coverage?

一个人想着一个人 提交于 2019-12-04 17:59:45
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 plugin jacoco (for maven) and I still DON'T get any results. So if someone had the same problems and

Testing a “Dojo” web application with Selenium

我只是一个虾纸丫 提交于 2019-12-04 17:46:59
问题 Has anyone done some extensive automation with Selenium and a Dojo-heavy web app? I'm looking for any issues or problem that you might have run into or issues related directly to the combination of Selenium and Dojo. 回答1: I've used Selenium extensively with a bunch of different web apps, including a few on Dojo. You should be fine. One practice I would recommend is to make sure all the components you'll be testing (both UI controls you'll be driving, as well as text components you'll be

Typing in a IFrame with Selenium IDE

删除回忆录丶 提交于 2019-12-04 14:54:13
I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this. Thanks a lot! You have to select the iframe and then type selenium.selectFrame("css=iframe.widget[<a_css_identifier>]"); selenium.type(<your_object_or_text_box>, <typed_content>); The statements are in java, but you should be able to find selectFrame and type in the IDE. You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id. Try <tr> <td>selectFrame</td> <td>edit</td> <td></td> </tr> <tr> <td>type</td> <td>xpath=//html/body</td> <td>my

Issue running Selenium IDE test suite using Selenium Standalone server

倖福魔咒の 提交于 2019-12-04 14:48:14
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://google.com ./suite.html ./out/firefox-results.html Output org.openqa.grid.selenium.GridLauncher main

Using selenium in order to read emails on gmail

巧了我就是萌 提交于 2019-12-04 11:38:06
I'm using selenium-rc and I'm trying to click on a specific email on gmail in order to get into the email page. More specifically: on the gmail inbox, click on a email with a specific subject. I can't find the correct xpath (none of the tags in the email part are links). Ideas? This XPath should do the trick: //div[@class = 'y6']/span[contains(., 'subject_here')] ... provided that you've first changed to the canvas_frame frame. Otherwise, it's unlikely it'll work at all. If you're not using Firebug to inspect the HTML, you really should as that's how I found out these values. Also, the Gmail

Press Enter Key in Selenium RC with C#

安稳与你 提交于 2019-12-04 08:33:55
How to press Enter using Selenium RC using C#? I am working with a SearchBox using Selenium . In which I have to type some name and I have to press Enter to search. There is no Submit button. So, I must use Enter . I tried something like this selenium.KeyPress("quicksearchtextcriteria", "13"); But doesn't work. Please Help. Note: I made a collection of possible ways to do this. See here: press enter key in selenium This can be achieved by Keys , and Enter . Example in Java as I don't know C#: import org.openqa.selenium.Keys; //... // this sends an Enter to the element selenium.type("locator",

Got “you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer” error

依然范特西╮ 提交于 2019-12-04 07:57:14
I got this below error while using Selenium RC for Google Chrome you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer. I don't know whats the issue with chrome. Reference code for flag --disable-web-security // Don't enforce the same-origin policy. (Used by people testing their sites.) const char kDisableWebSecurity[] = "disable-web-security"; It disallows cross scripting code, what are you doing on selenium RC? In feb 2013, someone (expert user/dev "PhistucK"; 1498 Posts as of 01/2014) said on the chrome-discuss gougle-group : No, it [the