Chrome opens 'data;' instead of webpage in automation with capybara - android

I am using appium_capybara to automate web application on real android devices.
I have done all the configurations for Appium Capybara driver.
However, when I run my cucumber tests, chrome browser gets launched in my android device, but it does not open the url specified, instead it opens a blank page with data; in the address bar.
Can anyone please help me get through it?

Related

How can we run an android app in Windows at any browser?

I want to run an android app(apk) in Windows at any browser like chrome, firefox but I do not know how.I don't want to use any emulator like bluestacks or NoxPlayer.Me. I want to run and display the application like in chrome browser at developer mode(mobile or tablet view). For example I want to add a link in any web browser to promote the applications I created so that the user can see them for example in a portfolio. I have tried to use a method like this website(https://www.androidguys.com/tips-tools/run-android-apps-chrome/) but it not working!So how can I run this and display with mobile view at any browsers in Windows? Did anyone try this?

Chrome://inspect shows my device but I can't inspect it

I want to get my hands dirty with app automation so I've been playing around with learning Appium (if anybody has any good tutorials send em my way!). I have an app on my local machine that I'm wanting to use for testing purposes.
The app is one I've created with c# and Xamarin Forms so I have all the files and the .apk locally.
I found a video that said you could use the chrome://inspect page to view apps in an emulator and even inspect them. When my app is running (starting it via Visual Studio) I can see it pop up in the device list but I don't have the option to inspect it.
I'm not sure how people feel about pictures but I don't really have any code to post so I'll just show you that the app is, indeed, running and what I see on the chrome devices page.
Here is my app running
And here is the device list from chrome. You can see the emulator there but I can't do anything with it
What am I missing here?
Chrome://Inspect is a part of Chrome Dev Tools that lets you see port forwarded web views from the mobile in a desktop browser. This is because we cannot inspect elements in Chrome mobile (something we do in desktop browser with CTRL+SHIFT+I) and we have to forward the chrome mobile window to chrome desktop.
To inspect element, if you're working on a web page or web application, just simply right click on that page and choose Inspect
And in your case, for inspecting Android application (apk), you should use UiAutomatorViewer, AppiumStudio, Katalon mobile spy, etc...
Here is my answer to similar question: https://stackoverflow.com/a/58204262/7302505

Android Emulator Network Issues

We have an issue where an application we are developing cannot hit certain environments when ran through the Android Emulator program. However, if we hit one of those same URLs in the Android Emulator Web Browser (chrome for instance), we can hit the pages just fine. Does anyone know how network traffic is handled in the emulator, and if there is anywhere to see if the emulator is just bridging my NIC?

Angular 4 out of box app URL fails to run in Samsung Galaxy S5 browser

I have angular cli v1.0.2 (& node 7.9.0) installed in my Windows 7 laptop. Successful in creating out of the box Angular 4 project and able to run in FF browser. I could also build & deploy this app in a public cloud and successful in running this URL from my laptop FF browser. However if I access this URL thru moblie phone, browser (display gets stuck in the index.html page) displaying "Loading...". Not sure whether Angular 4 app, by default would be able run in a mobile browser OR do we need any special tasks for mobile. BTW, I have Samsung Galaxy S5. Any info would be appreciated.
I have resolved it on my own. Here is what I did. Earlier I was using the "Google" app. It failed. Later if I use the FireFox or Chrome apps that is already part of the Samsung list of apps, it worked. Looks like some limitations thru Google app. Either way I am happy, since I was worried earlier on whether my Angular app is broke for mobile or what. I am glad it is good and working. Thanks to all for your contributions in Stack Overflow.

Chrome Content Script doesn't run when inspecting WebView for Android Emulator

I have a Chrome Content Script setup to match <all_urls>. It runs when I load any website or local file in the browser. But I can't figure out how to get it to run when I'm inspecting a WebView from the Android Emulator which I'm accessing via chrome://inspect/#devices.
Is it possible for Content Scripts to load when inspecting a device WebView like this?
I'll answer my own question. It's not possible because the Content Script I've written is running in the desktop browser, whereas the app I'm inspecting is in the device browser - two totally different environments. I would need a Content Script in the device browser, but the mobile Chrome browser doesn't support this as of now.

Categories

Resources