Display results as :

Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c


Typing in text on remote machine does not work, locally it does.

View previous topic View next topic Go down

Typing in text on remote machine does not work, locally it does.

Post by Rubycurse on Mon Nov 26, 2012 5:30 pm


I am using Selenium WebDriver to test a web application both locally and remotely on a virtual machine running on an external server. For both cases I use the same methods for interaction with the browser. In my case I use Firefox and IE8 locally and IE8 on the remote server.
The problem that occurs is when I run the following method:

public void type(String element, String value) {
selenium.keyPress(element, value);

I tried modifying this method using selenium.type, selenium.typeKeys, selenium.keyDown and selenium.keyUp but nothing worked. In some cases I crashed my locally running tests with this, too. On the remote Server there runs a selenium server to which I refer to via the following command:

String url = properties.getProperty(SELENIUM_APPLICATION_PROTOCOL) + "://" + properties.getProperty(SELENIUM_APPLICATION_ADDRESS);
Selenium selenium = new DefaultSelenium(properties.getProperty(SELENIUM_SERVER_ADDRESS), 4444, properties.getProperty(BROWSER_IE), url);

My WebDriver is instantiated via

WebDriver driver = new FirefoxDriver();
Selenium selenium = new WebDriverBackedSelenium(driver, url);

The concrete test case when the method mentioned above is crashing resp. not working properly is when I type in values to instantiate a new element via a html-form. When I try to save the entered data the browser deletes the inputted values because it fires the wrong event.
Can anybody help me solving this problem?

Thanks in advance


Posts : 1
Join date : 2012-11-26

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum