Screenshot and Video are appearing blank in cypress - screenshot

When I run test cases in cypress, am getting screenshots and video as blank
Operating System: Windows 10
Cypress version: 3.1.3
Browser: Electron 59 (headless)
I have tried installing cypress, node with admin profile. But still facing the same issue.
Any help will be appreciated. Thanks!

I believe cypress still got an issue with recording of blank videos in windows environment, please see the bug detail.
https://github.com/cypress-io/cypress/issues/1304
But before that, double check your screenshot and video settings in cypress settings:
For screenshots please check the configuration settings are looking good;
screenshotsFolder cypress/screenshots
trashAssetsBeforeRuns true
The same for video
video: true,
videoCompression: 32,
videoUploadOnPasses: true,
videosFolder: 'cypress/videos'

Related

Unable to test against Safari using v1.18.0

I just updated to TestCafe v1.18.0 and I followed the upgrade guide. I am able to run tests against Chrome and Firefox, as the system correctly prompted me if I wanted to let TestCafe control these, but this is not happening for Safari, so I am unable to test against it. I don't see any way to manually add an entry in the Automation tab either.
Automation Tab entry for TestCafe Browser Tools
Edit: I managed to add it using the remote option for TestCafe and pasting the URL into Safari, but even after that, npx testcafe safari is unable to launch Safari. I'm using an M1 Mac and macOS Monterey 12.0.1
TestCafe 1.18.0 does have the Safari-related issue. It has already been fixed. Please update TestCafe to v1.18.1.

Headless safari browse via windows

Can I run headless safari browser via windows?
I did not tried it yet but it's just I wanted to check if it's possible. If anyone have what all I need.
The short answer to this is no. The reason for this is an issue with Safari specifically, not Selenium. You can find an explanation on this relevant GitHub issue opened under the Selenium repo: https://github.com/SeleniumHQ/selenium/issues/5985
The GitHub issue is marked as closed by the Selenium developers, because Safari application itself does not support headless mode.

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

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

Debugging iOS7 Safari CSS issues with web inspector

I followed the steps to set up debugging webpage on iOS. It worked. However I see an issue with the inspector - it doesn't let me check the DOM and corresponding CSS. Anyone else has this issue? (Exact same issue when debugging using the simulator.)
Screenshot: http://screencast.com/t/E4fxPQwk14
Resource: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/DebuggingSafarioniPhoneContent/DebuggingSafarioniPhoneContent.html
Thanks!
UPDATE: WebKit nightly works. Thank you Timothy Hatcher!
You need to use a WebKit nightly, Safari 6.1 or Mavericks to use Web Inspector with iOS 7.
If you don't have access to Mavericks, You can also use Chrome devtools via proxy.
Debug iOS 6+7 Mobile Safari using the Chrome DevTools

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