Skip to content

Fixed typo. Action reference should be Actions reference to avoid cas… #11

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

Merged
merged 1 commit into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,63 +212,63 @@ Object {
exports[`command code emitter should emit \`mouse down at\` event 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).clickAndHold().perform();
}"
`;

exports[`command code emitter should emit \`mouse down\` command 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).clickAndHold().perform();
}"
`;

exports[`command code emitter should emit \`mouse move at\` event 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).perform();
}"
`;

exports[`command code emitter should emit \`mouse move\` event 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).perform();
}"
`;

exports[`command code emitter should emit \`mouse out\` event 1`] = `
"{
WebElement element = driver.findElement(By.tagName(\\"body\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element, 0, 0).perform();
}"
`;

exports[`command code emitter should emit \`mouse over\` event 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).perform();
}"
`;

exports[`command code emitter should emit \`mouse up at\` event 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).release().perform();
}"
`;

exports[`command code emitter should emit \`mouse up\` event 1`] = `
"{
WebElement element = driver.findElement(By.id(\\"button\\"));
Action builder = new Actions(driver);
Actions builder = new Actions(driver);
builder.moveToElement(element).release().perform();
}"
`;
Expand Down
8 changes: 4 additions & 4 deletions packages/code-export-java-junit/src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ async function emitMouseDown(locator) {
locator
)});`,
},
{ level: 1, statement: 'Action builder = new Actions(driver);' },
{ level: 1, statement: 'Actions builder = new Actions(driver);' },
{
level: 1,
statement: 'builder.moveToElement(element).clickAndHold().perform();',
Expand All @@ -443,7 +443,7 @@ async function emitMouseMove(locator) {
locator
)});`,
},
{ level: 1, statement: 'Action builder = new Actions(driver);' },
{ level: 1, statement: 'Actions builder = new Actions(driver);' },
{ level: 1, statement: 'builder.moveToElement(element).perform();' },
{ level: 0, statement: '}' },
]
Expand All @@ -457,7 +457,7 @@ async function emitMouseOut() {
level: 1,
statement: `WebElement element = driver.findElement(By.tagName("body"));`,
},
{ level: 1, statement: 'Action builder = new Actions(driver);' },
{ level: 1, statement: 'Actions builder = new Actions(driver);' },
{ level: 1, statement: 'builder.moveToElement(element, 0, 0).perform();' },
{ level: 0, statement: '}' },
]
Expand All @@ -473,7 +473,7 @@ async function emitMouseUp(locator) {
locator
)});`,
},
{ level: 1, statement: 'Action builder = new Actions(driver);' },
{ level: 1, statement: 'Actions builder = new Actions(driver);' },
{
level: 1,
statement: 'builder.moveToElement(element).release().perform();',
Expand Down