-
Notifications
You must be signed in to change notification settings - Fork 58
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
Unable to transpile #19
Comments
Hi, I see that the issue is fixed when I used 4.0.6 |
Hi, Thanks |
after fixing above errors, now i am getting error as below when i ran " npm run app-test" npm run app-test
<<< NATIVE APP TESTS STARTED >>> Error: spawn appium ENOENT npm ERR! A complete log of this run can be found in: |
@navaneetit09 currently I am getting the same issue. I've been trying to figure where exactly it's coming from. |
@navaneetit09 I assume you moved on from this project, but I was able to fix the issue by changing the configuration as seen before. I am able to run tests now. I also changed the old and deprecated libraries to their newer equivalents.
|
Hi, May know what is this change, Thanks |
@Fuun347 Could you please help me with this. |
@yashwanthkumar1796 not sure what 4.0.6 refers to. What I was forced to do myself is make a new framework from scratch. There are so many issues with this one. Most of the wdio libraries used are unsupported, so if you plan on using this framework, go and manually replace them with their new versions. The config is also very outdated so you might need to change some parts of it as well. The snippet above is from my config and it's for wdio and appium. |
@Fuun347 could you may be share your package.json, thanks |
"dependencies": { |
@yashwanthkumar1796 a number of the libraries are going unused, haven't had the budged to clean up yet the framework properly, or to add all the features I'd like |
@Fuun347 Even after updating the pacakge.json, iam getting more errors: pages/appiumPage.ts:7:54 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 7 public get searchTextBox(): any { return browser.element('input[type="search"]'); } pages/appiumPage.ts:8:53 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 8 public get searchButton(): any { return browser.element('button[aria-label="Google Search"]'); } pages/appiumPage.ts:9:48 - error TS2339: Property 'waitForVisible' does not exist on type 'BrowserObject'. 9 public get results(): any { return browser.waitForVisible('#ires #rso', 5000); } pages/appiumPage.ts:10:50 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 10 public get firstLink(): any { return browser.element('#rso > div:nth-child(1) > div > div > div > div:nth-child(1) > div > a'); } pages/appiumPage.ts:14:51 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 14 public get linkButton(): any { return browser.element('body > nav.navbar.navbar-inverse.navbar-static-top button'); } pages/appiumPage.ts:15:53 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 15 public get tutorialLink(): any { return browser.element('#bs-example-navbar-collapse-1 > ul > li:nth-child(7) > a'); } pages/appiumPage.ts:16:50 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 16 public get firstBook(): any { return browser.element('#readmeMarkdown > div:nth-child(1) > a.resource-title'); } pages/appiumPage.ts:17:61 - error TS2339: Property 'element' does not exist on type 'BrowserObject'. 17 public get androidTutorialTitle(): any { return browser.element('#native-android-automation').getText(); } stepDefinitions/calcSteps.ts:14:27 - error TS2339: Property 'getText' does not exist on type 'BrowserObject'. 14 const title = browser.getText('android.widget.TextView'); stepDefinitions/calcSteps.ts:19:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 19 browser.click(calc.calcDigitSelector(num1)); stepDefinitions/calcSteps.ts:20:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 20 browser.click(calc.addOperator); stepDefinitions/calcSteps.ts:21:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 21 browser.click(calc.calcDigitSelector(num2)); stepDefinitions/calcSteps.ts:22:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 22 browser.click(calc.equalOperator); stepDefinitions/calcSteps.ts:26:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 26 browser.click(calc.calcDigitSelector(num1)); stepDefinitions/calcSteps.ts:27:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 27 browser.click(calc.subtractOperator); stepDefinitions/calcSteps.ts:28:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 28 browser.click(calc.calcDigitSelector(num2)); stepDefinitions/calcSteps.ts:29:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 29 browser.click(calc.equalOperator); stepDefinitions/calcSteps.ts:33:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 33 browser.click(calc.calcDigitSelector(num1)); stepDefinitions/calcSteps.ts:34:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 34 browser.click(calc.multiplyOperator); stepDefinitions/calcSteps.ts:35:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 35 browser.click(calc.calcDigitSelector(num2)); stepDefinitions/calcSteps.ts:36:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 36 browser.click(calc.equalOperator); stepDefinitions/calcSteps.ts:40:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 40 browser.click(calc.calcDigitSelector(num1)); stepDefinitions/calcSteps.ts:41:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 41 browser.click(calc.divisionOperator); stepDefinitions/calcSteps.ts:42:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 42 browser.click(calc.calcDigitSelector(num2)); stepDefinitions/calcSteps.ts:43:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 43 browser.click(calc.equalOperator); stepDefinitions/calcSteps.ts:47:13 - error TS2339: Property 'click' does not exist on type 'BrowserObject'. 47 browser.click(calc.clearOperator); stepDefinitions/calcSteps.ts:51:27 - error TS2339: Property 'getText' does not exist on type 'BrowserObject'. 51 return expect(browser.getText(calc.outputText)).to.contain(result); stepDefinitions/calcSteps.ts:55:27 - error TS2339: Property 'getText' does not exist on type 'BrowserObject'. 55 return expect(browser.getText(calc.outputText)).to.equal(''); Found 28 errors. npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
@Fuun347 I have fixed the above mentioned by updating the new function btut when i run npm run browser-test, i get the following error 0 info it worked if it ends with ok |
I'm not really sure why you are getting this error. One of my theories is that you're lacking a driver for the browser as my framework is specifically built and setup for mobile automation rather than browser testing. I have a separate protractor based framework I made for browser testing. I never intended the use of a browser, so the config will differ and might require different libraries. |
@Fuun347 Can you suggest me some repo or example where some has done automation of website on apps using appium. |
@yashwanthkumar1796 sadly no. What I need I make myself. |
@yashwanthkumar1796 @Fuun347 It's unfortunate due to my work commitments I could not give time for updating the framework.If anyone is willing to send a PR I would be more than happy to guide. Also I will try to find some time in coming holidays to update this framework. |
@igniteram it would be very helpful if you could achieve web app testing on mobiles, Thanks |
Hi,
When I try to transpile, I get the following errors,
node_modules/@types/chai/index.d.ts:121:9 - error TS8020: JSDoc types can only be used inside documentation comments.
121 any?, // actual value
~~~~
node_modules/@types/chai/index.d.ts:122:9 - error TS8020: JSDoc types can only be used inside documentation comments.
122 boolean? // showDiff
~~~~~~~~
node_modules/@types/chai/index.d.ts:126:16 - error TS2370: A rest parameter must be of an array type.
126 assert(...args: AssertionArgs): void;
~~~~~~~~~~~~~~~~~~~~~~
Could this please be helped??
Thanks,
Srikanth T.
The text was updated successfully, but these errors were encountered: