Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${KEY_ENTER} or any ${KEY_***} doesn't work with html-runner #5736

Closed
Jordannoel opened this issue Apr 6, 2018 · 2 comments
Closed

${KEY_ENTER} or any ${KEY_***} doesn't work with html-runner #5736

Jordannoel opened this issue Apr 6, 2018 · 2 comments

Comments

@Jordannoel
Copy link

Jordannoel commented Apr 6, 2018

Meta -

OS: Windows 10
Html-runner version: 3.10.0
Browser: Firefox and Chrome
Gecko Driver : 0.20.0
Chrome Driver : 2.37

Browser Version: Firefox 54.1, Chrome 65.0.3325.181

Expected Behavior -

When I run the command sendKeys id=myId ${KEY_ENTER}, I want it to simulate the behavior of someone pressing enter.

Actual Behavior -

Instead, it fills my text box with null. Every other ${KEY_***} also fill my text box with null.
For example, if I write this :

<tr>
	<td>sendKeys</td>
	<td>id=myId</td>
	<td>test</td>
</tr>
<tr>
	<td>sendKeys</td>
	<td>id=myId</td>
	<td>${KEY_ENTER}</td>
</tr>
<tr>
	<td>sendKeys</td>
	<td>id=myId</td>
	<td>${KEY_BKSP}</td>
</tr>
<tr>
	<td>sendKeys</td>
	<td>id=myId</td>
	<td>${KEY_LEFT}</td>
</tr>
<tr>
	<td>sendKeys</td>
	<td>id=myId</td>
	<td>${something}</td>
</tr>

It will fill my textbox with : testnullnullnullnull
Is it a syntax problem, do I have a bad html-runner version, or a bad chrome/gecko driver ?

@Jordannoel
Copy link
Author

The only way I found is to use the deprecated command keyPress, taking as a first parameter the id of the element and as second parameter the value of the key in ascii.
For example :

<tr>
	<td>keyPress</td>
	<td>id=s2id_autogen1_search</td>
	<td>\13</td>
</tr>

Will press enter on my s2id_autogen1_search input.

@barancev
Copy link
Member

Legacy Selenium IDE is deprecated. See https://github.com/SeleniumHQ/selenium-ide for the new version

@lock lock bot locked and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants