What's Selenoid video filename - selenoid

Example - selenoid7a408b66263ee21c5e896514aa938105.mp4
Is there a way to know what name of the file is going to be - to log it for users? (it's not browser session id)
Is there a way to give this file a name that I want?

Selenoid video file name by default is <session-id>.mp4. What you are showing is temporary file name which is renamed to correct one when browser session is stopped. You can update video file name using videoName capability. https://aerokube.com/selenoid/latest/#_video_recording_enablevideo_videoname_videoscreensize_videoframerate_videocodec

Related

How to get the original fileName in response body of react-native-image-picker?

I have a requirement where I need to get the original file name while picking any document using launchImageLibrary function of react-native-image-picker.
However, the library seems to store the original file in app cache and then picks it up with a different file name, and the original file name is lost in the process. I'm not sure if this issue is present is iOS but it happens in Android. Any help is much appreciated.

how to create a mpd file using dashencoder

I have a video file name "test.mp4", this file contains the video + audio. and I want make different MPD's by using "DashEncoder.config" file. Can any one tell me that what are the changes required to to change the in the "DashEncoder.config"?
I made MPD's already but there is no voice in generated MPD's. :(
please help

Selenium 2 Firefox Profile Change Location

For many weeks now, I have been looking around and I have not seen anything regards to changing the location the Firefox Profile saves to.
I am using a specific Firefox profile, however, when the tests run the session is created in /tmp/. I would like the session to start up in a different location and save the files it uses in a location like: /var/tmp/. Is there any way to do this?
Note: This is not a question as to where I get the RemoteWebDriver to use a specific Firefox profile.
Edit: I am using Selenium 2.28 and Firefox 15.0.1
Look at FirefoxProfile:442
File profileDir = TemporaryFilesystem.getDefaultTmpFS()
.createTempDir("anonymous", "webdriver-profile");
copyModel(model, profileDir);
The TemporaryFilesystem takes it's location from "java.io.tmpdir":, which usually points to system's temp directory. Santoshsarma's solution will work because of this line (but it will also move your OS temp directory).
private static File sysTemp = new File(System.getProperty("java.io.tmpdir"));
We can do more! Look at the public method setTemporaryDirectory!
You can invoke this method just before instantiating your FirefoxDriver and it should create it's profile copy at the location you specified.
Firefox uses the OS temp file location for storing temporary files
You need to change the location of the temp files in Windows in the control Panel if you want to use another location for temp files.
You can change the %TEMP% and %TMP% environment variables and make them point to a temp folder that you want to use.
Control Panel > System > Advanced > Environment variables
Refer : Firefox Support

is it possible to locate file on Mac without knowing exact location?

I am trying to locate a file on Machintosh without knowing exact file location. I am developing an app which needs to locate iTunes library XML file and parse it for data. However XML resides in,
/Users/**Current logged in username**/Music/iTunes
Now username may change, So how to set path of let my code find below named file programmatically. Language used is Objective - C.
File name : iTunes Music Library.xml
Possible solution I thought is to get username by code. Is there any method which returns a string of current logged in user's "username".
Thanks
You should be able to use ~/Music/iTunes. ~ represents the home directory of the current user.
Or you could could see this question: Mac OS X: Get current username and home directory for current user from Directory Services
Don't do this! The user's iTunes library doesn't have to be in the default location.
Instead, read the iTunesRecentDatabasePaths key from com.apple.iapps. It'll give you an array that represents the recently used iTunes libraries.
$ defaults read com.apple.iapps iTunesRecentDatabasePaths
(
"/Volumes/Media/iTunes/iTunes Library.xml"
)
NSHomeDirectory() is a Foundation function that returns an NSString of the path to the current user's home directory.
Apple Developer Library - NSHomeDirectory

Selenium Test - Check if url returns a pdf

I have a selenium test I am creating. The application creates a pdf for the user. I want to know how to test that a url returns a pdf file. I don't really care what is in the pdf, just that one got created.
FYI - The url does not container .pdf
http://www.url.com/printp/something.php?pld=b8eiub9w6ar2am1i
Alternatively, make a HEAD request first to check if the url is created, then inspect content_length header, which should be nonzero size, or whatever is reasonable minimum size in your case.
Can you test if //meta[contains(#http-equiv,Content-Type)][contains(#content,pdf)] exists!
I did not test !