selenium-rc

How to fix “Permission denied to access property 'document'”?

空扰寡人 提交于 2020-01-03 05:20:32
问题 While trying to automate testing with selenium rc I ran into this problem. I was just following the steps in the tutorials. Here is the code (same as tutorials): [TestFixture] public class SeleniumTest { private ISelenium selenium; private StringBuilder verificationErrors; [SetUp] public void SetupTest() { selenium = new DefaultSelenium("localhost", 4444, @"*custom D:\Program Files (x86)\Firefox 4\firefox.exe", "http://www.google.com/"); selenium.Start(); verificationErrors = new

How to set Proxy Configuration in java code

北战南征 提交于 2020-01-03 04:50:26
问题 I'm trying to program in Java a class to start my Selenium Server in case it is down for some reason. I found very good help here: http://www.testingexcellence.com/how-to-start-selenium-server-with-java-code/ I see that some if the configuration parameters can be set using the class RemoteControlConfiguration and methods such as setPort, setLogOutFileName, setTimeoutInSeconds, ... The problem is that my Selenium Server connects to a proxy in this way: java -jar selenium-server.jar -Dhttp

Selenium - Cross domain and HTTPS problem

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 07:21:08
问题 I use Selenium to test my website. The website need to access an external catalog to select some items from it. The problem is this catalog is published on another domain with HTTPS protocol. I've searched and read many topics on the internet about Selenium and Cross domain problems, but I still don't find the answer yet. Some topics said that the *iehta browser will overcome this issue, but in fact it could not do that. I also try *iexplore, *iexploreproxy, *firefox, *firefoxproxy as well,

Selenium - Cross domain and HTTPS problem

浪尽此生 提交于 2020-01-02 07:21:05
问题 I use Selenium to test my website. The website need to access an external catalog to select some items from it. The problem is this catalog is published on another domain with HTTPS protocol. I've searched and read many topics on the internet about Selenium and Cross domain problems, but I still don't find the answer yet. Some topics said that the *iehta browser will overcome this issue, but in fact it could not do that. I also try *iexplore, *iexploreproxy, *firefox, *firefoxproxy as well,

Selenium in -browserSessionReuse mode launchs a new browser

别来无恙 提交于 2020-01-02 07:09:20
问题 I'm trying the -browserSessionReuse Selenium mode to speed up my tests but i've noticed a strange behaviour. The purpose of this mode is avoid the time wasted opening browsers between tests, and this is how it works. But not always, if i run tests continuously they are run in the same browser, correct. But if between each test run pass some minutes, it will forget it has an already opened browser and it opens a new one. I suppose there is a timeout to discard the "old" browser, but i don't

Typing in a IFrame with Selenium IDE

安稳与你 提交于 2020-01-01 16:54:50
问题 I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this. Thanks a lot! 回答1: 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. 回答2: You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id.

Typing in a IFrame with Selenium IDE

穿精又带淫゛_ 提交于 2020-01-01 16:52:07
问题 I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this. Thanks a lot! 回答1: 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. 回答2: You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id.

Read the rows in excelsheet and populate in webpage text box

自作多情 提交于 2019-12-25 01:07:13
问题 Can anyone please suggest me how can I read an excel-sheet in my local-drive say"C:\company_names.xls" and populate into the text boxes present in a webpage. I will explain the test case scenario as below: 1)The webpage should first open in a Firefox. 2)The left navigation should be clicked "companylist" 3)Then a drop-down value name company list(by default) should be selected. 4)Then create button should be click which takes the page to another page which has two text boxes with names say

How can I run a selenium test every 5 minutes?

时光毁灭记忆、已成空白 提交于 2019-12-25 00:31:50
问题 I have created a Selenium test using the Firefox Addon. Now, I want to make it run every 5 mins. How can I do that? Thanks! 回答1: To run it every 5 minutes, you will have to use export your test from IDE to be used in selenium-rc. For scheduling you can use quartz or cron. 回答2: you can make use of javascript function or java's scheduler class ect.. please try to be specific so that you will get quick responses cheers 来源: https://stackoverflow.com/questions/6199874/how-can-i-run-a-selenium-test

Selenium Web driver and selenium RC

孤街醉人 提交于 2019-12-24 23:55:38
问题 Is there a simple way i can convert my existing selenium RC scripts into the Webdriver format? 回答1: There's no way now to "convert" tests, but they can be tweaked to work with WebDriver using its Selenium Emulation. You should keep in mind that not all Selenium methods are implemented in WebDriverBackedSelenium. However in future releases of WebDriver the support should expand and at some point (probably when Selenium 2 will reach the Beta status) the Selenium and WebDriver will be merged so