Fix post file input not found
All checks were successful
Push image to registry / build-image (push) Successful in 2m49s
All checks were successful
Push image to registry / build-image (push) Successful in 2m49s
This commit is contained in:
@@ -344,7 +344,7 @@ class InstagramRepostJob extends InstagramAbstractJob implements ShouldBeUniqueU
|
|||||||
$selectFileButton = $browser->driver->findElement(WebDriverBy::xpath('//button[contains(text(), "Select from computer")]'));
|
$selectFileButton = $browser->driver->findElement(WebDriverBy::xpath('//button[contains(text(), "Select from computer")]'));
|
||||||
$selectFileButton->click();
|
$selectFileButton->click();
|
||||||
sleep(2);
|
sleep(2);
|
||||||
$browser->attach('input[type="file"]._ac69', $this->downloadFolder . $reel->reel_id . ".mp4");
|
$browser->attach('input[type="file"]', $this->downloadFolder . $reel->reel_id . ".mp4");
|
||||||
|
|
||||||
sleep(10); // TODO : Wait for the file to be uploaded
|
sleep(10); // TODO : Wait for the file to be uploaded
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use App\Browser\Jobs\InstagramRepost\InstagramNotificationHandlingJob;
|
||||||
use App\Http\Controllers\JobController;
|
use App\Http\Controllers\JobController;
|
||||||
use App\Models\Job;
|
use App\Models\Job;
|
||||||
use App\Services\BrowserJobsInstances;
|
use App\Services\BrowserJobsInstances;
|
||||||
@@ -17,3 +18,12 @@ Route::get('/test/{id}', function (Request $request, $id, BrowserJobsInstances $
|
|||||||
});
|
});
|
||||||
|
|
||||||
Route::get('jobs/{job}/test', [JobController::class, 'test'])->name('jobs.test');
|
Route::get('jobs/{job}/test', [JobController::class, 'test'])->name('jobs.test');
|
||||||
|
|
||||||
|
Route::get('/testInstagramNotification', function (Request $request, BrowserJobsInstances $BrowserJobsInstances) {
|
||||||
|
$id = 4;
|
||||||
|
$job = new InstagramNotificationHandlingJob($id);
|
||||||
|
$log = $job->execute();
|
||||||
|
dump($log);
|
||||||
|
dump(response()->json(['message' => 'Job ' . $id . ' ran', 'jobRun' => $log->load('artifacts')]));
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user