MLHttpRequest cannot load in sencha touch 2 - sencha-touch-2

I am designing app where I am facing following error of cross domain in google chrome:
1.XMLHttpRequest cannot load
2.Origin localhost:8080' is not allowed by Access-Control-Allow-Origin.
Please provide step by step way to resolve this issue.
Thanks

Follow the steps shown in figure.
When you build your app to android kindly use cordova. It handle cross domain issue in mobile application. Unless when you try your application on localhost you have to disable your browser security.
If your chrome browser opened kindly close it and follow the steps.
Right click on your chrome shortcut icon and select properties and type
--disable-web-security
and open your browser you will see the warning from browser in yellow ribbon as shown below.

Related

Lighthouse: Unable to run generate report on localhost

As the title says I'm trying to generate a report for my nuxt app served locally.
If I generate the report via DevTools it takes an extremely long time and gives me exceptionally bad scoring(compared to generating the report on the same site deployed).
If I try using the lighthouse extension the "Generate report" button is disabled.
Am I going about this wrong or is there any way to locally generate valid reports?
Thanks in advance.
Images:
chrome extension
devtools
Is your application PWA? Service workers are causing this. Try unchecking clear storage / clear cache option to the right of the window under the lighthouse tab, sometimes collapsed under a settings icon. If it's still not generating a report, do the same in an incognito window.
The issue:
The option:
And it works:
I think it's because you're not trying lighthouse in incognito mode. Browser extensions can cause that problem.
Click on the three dots under close button
Select New Incognito Window
Enter your website address
Run lighthouse

how to add browser in my bot automation any where for capturing sites

I'm using latest version of automation anywhere and then I want to capture the site elements.my problems is when I select the window for choosing browser it does not adding the browser and showing the error given below.
ERROR PICTURES
this is happening because your device does not have the agent installed or has an error.

automate electron based desktop app using testcafe not working

i am trying to automate tests for 'lens' electron based desktop application.i was following this link enter link description here to setup the test for electron app.This link expects a 'mainwindowurl' but application doesn't have any main page, but testcafe give suggestion of the mainwindowurl as an error so tried it works but am not convinced with the suggrstion urls ,but same way want to give fixture page url on the test what should be the url should i need to give? then have got one more error ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.Please can you guys suggest what to do?
Each and every Electron application has to navigate to a page after opening a window.
I guess that the mentioned Lens app is an Kubernetes IDE: https://github.com/lensapp/lens.
This app uses the BrowserWindow.loadURL function to navigate to the main page:
https://github.com/lensapp/lens/blob/a61425124f18b1cc2d8a507084a472029acc3e6b/src/main/window-manager.ts#L101.
Digging the code a bit more, I found that the main window URL is just localhost with some port:
https://github.com/lensapp/lens/blob/a61425124f18b1cc2d8a507084a472029acc3e6b/src/main/window-manager.ts#L33.
I guess it is possible to determine or set the port number by looking at the code a bit more or asking Lens developers about it.

Blueprism - Not able to spy elements

I am using Blueprism to launch a URL in browser to spy it. I am able to launch the URL using the application modeller, but not able to spy it. The "Identify" option itself does not appear in blue prism. What is the problem and what is the solution ?
In spying a web application, key things to note for your application modeler;
1. your application modeler must be a "Browser-Based Application"
2. Launching from an executable or attaching to one. (Assuming you are launching from an executable from your question)
3. Specify url.
From your question. you are able to launch the browser from the application modeler. the most possible problem is you missing step 1 as mentioned above. Confirm your application modeler is specified as "Browser-Based Application"
Check a few things : is your modeler attached to the browser, are you in the right mode (for ease of use I would recommend using IE in HTML mode), and if that doesn't work try accessibility mode.
Try these simple steps:
Close the browser application and let the Blue Prism open your browser.
Try testing your object in Object Studio.
Now open your application modeler and launch. Check and you will find the identify option appeared.
If you launch application from Google Chrome, then you can get this error because in Google Chrome it's not possible to Spy and launch the applications. Any RPA Tools will support only Internet Explorer

Sahi sign in to mailtrap.io issue

I'm having an issue with Sahi Open Source logging into Mailtrap.io
the script is quite simple:
_navigateTo("https://mailtrap.io/");
_setValue(_textbox("email"), "emailHere");
_setValue(_password("user_password"), "passHere");
_click(_submit("Log in"));
however only first line of code executes.. as soon as I reach mailtrap.io then controller looses grip on html... In case I launch new browser from Sahi Dashboard and navigate to mailtrap.io, then Controller window is not coming up on Alt+doubleClick..
I added SSL cert. Anyone had this issue before? Anyone successfully using sahi with mailtrap?
Cheers.
I got it to work i think.
First I installed Sahi OS 5.0 and opened the firefox browser. With the SSL Manager I added security exceptions for sahi.example.com and mailtrap.io
On navigation to mailtrap I got an error:
Content Security Policy: The page's settings blocked the loading of a resource
This is a browserfeature and can be turned off in the about:config https://stackoverflow.com/a/27324485/1359903
Now the script runs and the controller can access the sites elements. I hope this works for you too.
Regards
globalworming