Appium codeception iOS simulator error: could not find any webviews yet refreshing/retrying - testing

When I try to launch safari on iPad simulator and do $I->amOnPage("http://www.amazon.com"). Safari browser is launched but is stuck at http://127.0.0.1:4723/welcome. I see in appium logs this warning "could not find any webviews yet refreshing/retrying" and then nothing happens.
I use Appium 1.4.8, OS X 10.10 Yosemite, codeception 2.1.2, XCode 6.4. I have no idea what I am doing wrong. I looked up online and some said I should be running ios_webkit_proxy_launcher. I tried running that on 27753 with -c and simulator UDID -d options and retried my test. Still no change. ios proxy starts up but has no logs whatsoever. These are the desired capabilities I am using :
modules:
enabled:
- WebDriver
config:
WebDriver:
url: 'http://www.amazon.com'
connection_timeout: 500
request_timeout: 500
browser: 'safari'
host: 127.0.0.1
port: 4723
capabilities:
browserName: 'safari'
platformVersion: "8.4"
platformName: "iOS"
deviceName: 'iPad Retina'
connection_timeout: 500
request_timeout: 500
Any ideas? Thanks.
However I can get things to work fine with PHPUnit! Dont know whats going on with codeception.

I also faced issue while opening webview in safari browser. I was working with iPhone device. But below pre-conditions should be same for simulator.
machine should have:
Appium installed.
libplist 1.10 installed.
libusbmuxd 1.0.8 installed.
libimobiledevice 1.1.5 installed.
If you are running on device turn on (settings go to developer then
UIautomator)UI automator and safari go to advanced turn on web
inspector.
open terminal run following command:-
ios_webkit_debug_proxy
Hit enter
open new window on terminal hit following command:-
ios_webkit_debug_proxy –c:27753 –d
Don’t change port number.
Device(in your case , simulator) should be connected to machine.

Maybe you need to enable Web Inspector of Safari on your device.
Settings > Safari > Advanced > Web Inspector = ON

Related

Unable to launch app via appium capabilities but app launched successfully via 'xcrun simctl install booted install myApp.app'

Error message: ‘myApp.app’ cannot be opened because the developer cannot be verified.
I face above error when I install the myApp.app using Appium on my iOS simulator. However, when I install the same myApp.app using terminal command ‘xcrun simctl install booted install myApp.app’ then the app installed/launched perfectly fine.
Note: I am a tester hence I have not built the app using XCode and moving forward I will be getting the .app file only from the developer for testing.
Below are the details
Appium desktop client version : 1.15.1
macOS version : 10.15.2
XCode version: 11.3
I am using below appium desired capabilities for iOS
{
“platformName”: “iOS”,
“platformVersion”: “13.3”,
“deviceName”: “iPhone 8”,
“automationName”: “XCUITest”,
“app”: “/Users/harj/Desktop/myApp.app”,
“bundleId”: “com.abc.xyzApp”,
“commandTimeouts”: 60000,
“noReset”: false,
“autoGrantPermissions”: true,
“useNewWDA”: true,
“showXcodeLog”: true
}
Appium logs
There are many errors in the log but i found this one relevent
Original error: ‘idb’ has not been found in PATH. Is it installed? Read https://www.fbidb.io for more details
That would be great if someone faced the same problem and got a solution.
Happpy Testing
harj
I can able to launch the sample .app file on simulator with below versions.
I have resolved setup issue for simulator 13.4 version with xcode 11.4.
Simulator-: 13.4
xcode -: 11.4
mac os. -: 10.15.4
appium v -: 1.17.0
If you still face any issue then let me know. with appium logs and whole details.
Finally, the solution has been found.
Actually, the problem is with the macOS Catalina not with the Appium. The OS was preventing the .app to install on the simulator. There are two ways to solve this problem.
1) Degrade the gatekeeper(security) check on your mac.
2) Quarantine that specific app using below terminal command
xattr -dr com.apple.quarantine /yourAppPath/myApp.app
I recommended the option2 as it will keep your mac safe from attacks.

Missing "Web Inspector" Settings in simulator

After doing a "Reset All Content And Settings.." on the simulator the setting to enable using the web inspector in safari has disappeared, and I have no idea how to get it back:
Does anyone have an idea how to get this back, and "remote" debug a webpage in the simulator again?
It seems that this option is not available in the simulated devices. Tip: If you want to connect the console from your desktop Safari, you will need the Technology Preview. the normal one does not discover the simulator (though it finds the real device normally)
In my case (macOS 10.14.3 and iOS 12.1 simulators), the setting isn't there, but is active by default. Open the simulator and you should see it in Safari under Develop.
i needed to restart desktop safari. might help.
Worked for me download new Safari:
IOS Simulator: 13.4
(Safari Technology Preview)
https://developer.apple.com/safari/download/
Safari Technology Preview

protractor not working with Safari 11

protractor version : 5.0.1
safari version : 11
Mac version : 10.13
selenium version : 3.0.1
Error message: safaridriver could not launch because it is not configured
I have enabled the safari driver using the command --enable but still it is not launching the browser
Any possible solutions for the issue ?
A lot of times, it's because the developer option to allow remote automation isn't clicked. In safari, you can access this by clicking 'preferences' -> advanced. At the bottom it says 'show Developer Menu in Menu Bar.' Click that. Then in the newly appeared develop tab click on 'Allow Remote Automate' towards the bottom of the list. If this doesn't run it, post your code and we can take a more thorough look.

Nuclide Ios Simulator Logs are empty

I just updated some packages in Atom and now I can't see any logs from iOS simulator :/
Atm I have:
Atom - 1.10.2
Nuclide - 0.171.0
I'm doing:
Nuclide Ios Simulator Logs: Start
I got the console with "Showing: 7 Sources", all selected and "iOS Simulator" Process is started, yet console remains empty :/
I've also try doing:
Nuclide Ios Simulator Logs: Restart
but also no luck.
Anyone got similar issue?
Thanks in advance.
Apparently it is an open issue
Options:
Use ChromeDevTools console (On Chrome, Cmd+Alt+J)
Use device system log (On device, use Cmd+ / )
Note: for Chrome option make sure Debug Remote JS is enabled

Appcelerator Apps don't work in Firefox and Chrome but work in IE

I have problem as following. I use a Titanium Studio, build: 3.1.1.201306112235 with SDK 3.1.1 GA (on Windows 7). When I try to run example app as "Mobile Web Preview in Browser", then I saw mobile app in my Firefox (version 21.0) but any actions associated with 'clicks' don't work. Furthermore when I try run the same app in Chrome I see the same behaviour. Only in Internet Explorer app works properly (version 10). Do you have idea why apps from Titanium don't work properly? If you would like to get some more logs just ask.
EDIT: I provide remote access, and reopen page by Firefox in the same version on my colleague's laptop. Then in here browser everything works well. So i have question which settings, on my browser can "freezing" titanium application. Javascript is running, so I don't have idea, what is bad in my configuration.
This sounds like you are making web service calls to a remote host, which violates the same-origin-policy built into recent versions of chrome.
Try opening up chrome with this policy disabled:
chrome.exe --disable-web-security