Javascript - Trying to use to log into a system - cypress

I am currently trying to use Cypress as an automation tool but it keeps failing at the start with the login.
I keep getting this message:
CypressError: Timed out retrying: Expected to find element:
'#ctl00_mainContentArea_Login1_lv_lg_userName', but never found it.
I have added a login details as a json file and made the 'Login' with a direct url but still getting this error.
Here is the part of the code that keep failing but I can't figure where the error lies:
cy.get('#ctl00_mainContentArea_Login1_lv_lg_userName').type(this.login.username)
cy.get('#ctl00_mainContentArea_Login1_lv_lg_password').type(this.login.password)
cy.get('#ctl00_mainContentArea_Login1_lv_lg_LoginButton').click()
cy.url().should('contain','System/Dashboard.aspx')
Have i missed something in this part of the code??

Related

Getting Hydration Failed errors in shopify when building the first app

I am learning how to code an Shopify app. I wanted to build first app and I started following this tutorial : https://shopify.dev/apps/getting-started/create
I used npm init #Shopify/app#latest to create first app, then moved to that directory using cd .\first-app\ then I used npm run dev App looks and works fine with UI but on console I am getting lots of errors. Here are few of them.
Hydration failed because the initial UI does not match what was rendered on the server.
There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.
vendors-node_modules_bugsnag_js_browser_notifier_js-node_modules_shopify_monorail_lib_monorai-fdaebc-b7c7bc61031d801d7cdf29f30133708999e0fe454a161247422ecc3e28c64ef8.js:2
Uncaught (in promise) Error: Error completing request. A network failure may have prevented the request from completing. Error: TypeError: Failed to fetch
And few more, I did set up the ngrok tunnel and it is working fine.
I might be missing something, any help or pointing me to right direction is appriciated
Trying to build my first app on Shopify going through their documentation using : https://shopify.dev/apps/getting-started/create

Getting a weird error in Cypress and unsure what's causing it?

I'm getting this error in Cypress:
[14884:0531/191841.692335:ERROR:system_services.cc(34)] SetApplicationIsDaemon: Error Domain=NSOSStatusErrorDomain Code=-50 "paramErr: error in user parameter list" (-50
Looked it up and can't find information anywhere specific to Cypress, does anyone know what's causing it?
It's not failing my tests, but it's making the build in circleci show a failure :(
Thanks,
Not sure of your config setup but if it's using the default Electron browser I usually get this error. If i change to browser: "chrome" in cypress.run this error message disappears.

Cypress not opening URL and throwing error

I am trying to open a URL using cypress but it is giving error in response
{"error_code":"E0020000","trace_id":"c2ecd944c52b870ca9d4a014f821f4cd"}
Not sure what this error is.
I am using cy.visit("") to launch the URL. I tried this on different browsers but it is giving this error. Please help me with same

Magento - Authentication Credentials Invalid

I am having an error trying to make a request:
Then when I submit I have the next error:
The 1003887036428 error report file:
Recently the system worked like a charm but it has to migrate to another host and this error started to appear in the actual hosting. I dont know why.

Getting error in google fit "Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null}"

I have tried to develop application using google fit. I follow This link
When i try to run that application i got the following error
10-27 11:55:19.966: I/Google Fit(6016): Connection failed. Cause: ConnectionResult{statusCode=unknown status code 5005, resolution=null}
10-27 11:55:19.966: E/GooglePlayServicesUtil(6016): Unexpected error code 5005
Finally i found that issues. We need to save the content in consent screen under oath and api
I had this error and the consent screen had been filled in correctly. The only way I could get around this was to delete the project and re-create it.

Resources