Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Rubycurse
Posts : 1
Join date : 2012-11-26

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

Mon Nov 26, 2012 5:30 pm
Hi!

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
Tobias
Back to top
Permissions in this forum:
You cannot reply to topics in this forum