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

Element Wasn't Found After Upgrading my Spectron Version to 15 & Electron to 13 #1025

Closed
filbertwjy opened this issue Aug 16, 2021 · 1 comment

Comments

@filbertwjy
Copy link

filbertwjy commented Aug 16, 2021

hi, im currently working on testing an electron application with spectron.
I upgraded my electron app to 13.1.7 and my spectron to 15.0.0
something went wrong.
the spectron cant locate the element , whereas I've already locate the element properly and matched with the id of the button of submit.

here is the further info:
"author": "Filbert Wijaya",
"license": "MIT",
"devDependencies": {
"@testing-library/webdriverio": "^3.0.2",
"@wdio/cli": "^7.9.1",
"chai": "^4.3.4",
"electron": "^13.1.7",
"eslint": "^7.30.0",
"esm": "^3.2.25",
"mocha": "^8.4.0",
"spectron": "^15.0.0"
},
"engines": {
"node": "^13.12.0"
},
"dependencies": {
"@types/webdriverio": "^5.0.0",
"webdriverio": "^7.9.1"
}
}

@filbertwjy
Copy link
Author

filbertwjy commented Aug 16, 2021

---here is the code---

import { startApp, stopApp } from "./hooks";
import { homePage, serverPage } from "./page-objects/General_Id";
describe("Server Access & Login Test ", () => {
let app;

it("Open App", async () => {
app = await startApp();
});
const accessButton = await app.client.$(serverPage.button);
await accessButton.click();

---and here is the code to locate element id from General_Id files---
export const serverPage = {
formId: "#serverId",
button: "#submitButton",
};

@filbertwjy filbertwjy changed the title Element Wasn't Found After Upgrading my Spectron Version to 15 Element Wasn't Found After Upgrading my Spectron Version to 15 & Electron to 13 Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant