I am unable to create a .csv file in php using selenium required for executing my test case and how to upload the same.
As to run my test case i have to update and upload the .csv file so that same data is not uploaded for each execution.
Thanks to all in advance
Use following PHP Code to create a csv file dynamically and give the file to the script to Upload.
$valueis an array with the values comma seprated to be written in csv file per line.$outputis an array of values so that it put the values on newline.ranis creaing numbers and name randomly. The file will be created in the base directory.Use the following to upload the file it only works in Firefox.
For more refrence click here