Comments (5)
Not possible for Android since the time comes from adb's screenrecord command limitation
https://github.com/appium/appium-adb/blob/01f3dbd8e2be4bd967906c24bb444651f7bcbae7/lib/tools/adb-commands.js#L1772
from appium.
As the error message, 1800 is the max value for the endpoint usage as Appium.
[HTTP] --> POST /wd/hub/wd-internal/session/0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b/appium/start_recording_screen
[HTTP] {"options":{"videoType":"libx264","videoFps":10,"videoScale":"1280:720","videoSize":"1280x720","timeLimit":1801}}
[XCUITestDriver@d3b8 (0cf65adc)] Calling AppiumDriver.startRecordingScreen() with args: [{"videoType":"libx264","videoFps":10,"videoScale":"1280:720","videoSize":"1280x720","timeLimit":1801},"0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b"]
[device-farm-main] 📱 Plugin Args: {"platform":"both","iosDeviceType":"both","androidDeviceType":"both"}
[AppiumDriver@dfb2] Clearing new command timeout pre-emptively since plugin(s) will handle this command
[AppiumDriver@dfb2] Plugins which can handle cmd 'startRecordingScreen': device-farm
[AppiumDriver@dfb2] Plugin device-farm is now handling cmd 'startRecordingScreen'
[AppiumDriver@dfb2] Executing default handling behavior for command 'startRecordingScreen'
[XCUITestDriver@d3b8 (0cf65adc)] Executing command 'startRecordingScreen'
[XCUITestDriver@d3b8 (0cf65adc)] Checking if there is/was a previous screen recording. Set 'forceRestart' option to 'true' if you'd like to skip this step.
[XCUITestDriver@d3b8 (0cf65adc)] Screen recording is not running. There is nothing to stop.
[device-farm-main] Updating lastCmdExecutedAt for device 4FBCECAB-C544-4346-9551-BE2769F642AA in session 0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b
[DevCon Factory] Releasing connections for 4FBCECAB-C544-4346-9551-BE2769F642AA device on 53757 port number
[DevCon Factory] No cached connections have been found
[XCUITestDriver@d3b8 (0cf65adc)] The timeLimit value must be in range [1, 1800] seconds. The value of '1801' has been passed instead.
[XCUITestDriver@d3b8 (0cf65adc)] Encountered internal error running command: Error: The timeLimit value must be in range [1, 1800] seconds. The value of '1801' has been passed instead.
[XCUITestDriver@d3b8 (0cf65adc)] at Object.wrappedLogger.errorWithException (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/support/lib/logging.js:114:43)
[XCUITestDriver@d3b8 (0cf65adc)] at Object.wrappedLogger.errorAndThrow (/opt/homebrew/lib/node_modules/appium/node_modules/@appium/support/lib/logging.js:120:16)
[XCUITestDriver@d3b8 (0cf65adc)] at XCUITestDriver.startRecordingScreen (/Users/alekseybulygin/.appium/node_modules/appium-xcuitest-driver/lib/commands/recordscreen.js:248:16)
[HTTP] <-- POST /wd/hub/session/0cf65adc-d8e5-41c0-baec-5ba9bbe51a5b/appium/start_recording_screen 500 11 ms - 706
https://github.com/appium/appium-xcuitest-driver/blob/f00139e68fe29ba53f21b9d3293dbd47c33d3c1e/lib/commands/recordscreen.js#L247-L252
Possibly you could modify the code on your local to extend it. I don't recall well but probably we added the limit for some past issue etc
from appium.
Looks like appium/appium-xcuitest-driver#751 is the last modification for the max timeout.
We could relax it more by user responsibility I guess.
from appium.
@KazuCocoa I tried to increase the value locally, I came across this limitation
[ffmpeg] [http @ 0x138808e00] Value 5401.000000 for parameter 'reconnect_delay_max' out of range [0 - 4294]
I was able to run without an error with a value of 4293, at least something, thank you
from appium.
@KazuCocoa thank you so much for making this fix, and will this revision be for uiautomator2 ?
from appium.
Related Issues (20)
- Appium2 uses python to operate the simulator installed in the wechat software automation, elements=driver.find_elements(By.CLASS_NAME, "android.widget.Button") 500 exception, Whether find_elements can be used normally HOT 1
- The request to the /execute/sync endpoint results in the error: TypeError: this.executeMethod is not a function. HOT 2
- bug: It's taking more than 5 minutes to create a session in Appium 2 for iOS Native App in MacOS. In Appium 1, it used to be created in 30 seconds. HOT 3
- bug: none W3C error responses are used HOT 3
- java.lang.SecurityException: Permission denial, must have one of: [android.permission.WRITE_SECURE_SETTINGS] HOT 3
- Appium inspector/ XCUITestDriver can't "see" a WebElement (cell from a table) which is horizontally out of the UI view of the screen HOT 3
- UserName, Password etc Login elements are not identifiable on iOS version 16 and 17 version HOT 1
- bug: can't find webView but a android.widget.FrameLayout for chrome HOT 2
- bug: Installing Windows driver installs the latest (broken) dev version of WinAppDriver HOT 1
- bug: Why does the driver.page_source method only get the app layout on Android 12, but not the layout of the status bar and navigation bar? The device is in landscape mode, and the navigation bar is on the right. HOT 2
- Not able to click with JavascriptExecutor on mobile web (chrome) after switching to appium 2.6.0 HOT 2
- Scroll Element Into View : NotImplementedError: Method is not implemented HOT 4
- when launch release application than showing error "Cannot extract a manifest from 'C:...\MyCo1.apk'. Is it a valid Android application? bug: <title> HOT 5
- Locator Strategy 'xpath,//XCUIElementTypeButton[@width="41"]' is not supported for this session HOT 6
- bug: Failed to create session, because Shell does not have permission to access user 10 HOT 1
- newCommandTimeout not working if the last comman is cause exeception(like NoSuchElementError) HOT 13
- Como Hackear Instagram Utilizando Scripts (github)
- [iOS] Error: Connection was refused to port HOT 1
- bug: iOS specific popups are not detected by appium HOT 2
- bug: WinAppDriver {"status":13,"value":{"error":"unknown error","message":"An unknown error occurred in the remote end while processing the command."}}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium.