Size: a a a

Aerokube Support

2020 December 01

D

Dario in Aerokube Support
it uploades the image multiples time
источник

IK

Ivan Krutov in Aerokube Support
seems to be C#-specific issue...
источник

IK

Ivan Krutov in Aerokube Support
i.e. an issue in client library
источник

D

Dario in Aerokube Support
i am having the same problem with php using php-webdriver
источник

D

Dario in Aerokube Support
источник

D

Dario in Aerokube Support
does selenoid have this fix?
источник

АА

Александр Андряшин... in Aerokube Support
Dario
does selenoid have this fix?
It is client side code...
источник

D

Dario in Aerokube Support
this is my php code:

$count = 0;
       foreach ($this->images as $image) {
           if ($count >= 30) {
               break;
           }

           $img = Image::make($image->getLocalPath());
           $img->resize($img->width(), $img->height());
           $img->save($image->getLocalPath());

           $fileInput->sendKeys($image->getLocalPath());
           
           $count++;

           sleep(1);
       }
источник

D

Dario in Aerokube Support
Александр Андряшин
It is client side code...
but it is working on my server with selenium-standalone
источник

D

Dario in Aerokube Support
<input type="file" name="fileElem" id="fileElem" multiple="" accept="image/*" style="visibility: hidden;position: absolute;" onchange="handleFiles(this.files)">
источник

D

Dario in Aerokube Support
this is the input
источник

D

Dario in Aerokube Support
// getting the input element
       $fileInput = $driver->findElement(WebDriverBy::id('fileElem'));

       // set the file detector
       $fileInput->setFileDetector(new LocalFileDetector());
источник

T

T:ema in Aerokube Support
This code looks like you're going to upload several files, not just one.  You may want to try to change the  line 11  to $fileInput->sendKeys($image->getLocalPath() . PHP_EOL);
источник

D

Dario in Aerokube Support
let me check
источник

D

Dario in Aerokube Support
T:ema
This code looks like you're going to upload several files, not just one.  You may want to try to change the  line 11  to $fileInput->sendKeys($image->getLocalPath() . PHP_EOL);
this will brin to a Facebook\WebDriver\Exception\InvalidArgumentException: File not found
источник

T

T:ema in Aerokube Support
Dario
this will brin to a Facebook\WebDriver\Exception\InvalidArgumentException: File not found
are you using these bindings: https://github.com/php-webdriver/php-webdriver, aren't you?
источник

D

Dario in Aerokube Support
yes i use this
источник

T

T:ema in Aerokube Support
Dario
yes i use this
Could you please provide a page where I can reproduce the issue? I'm pretty sure I never saw anything like this with my bindings and I wonder if it's the bindings problem or it's something within the driver which causes it.
источник

DT

Dmytro Tsvirkun in Aerokube Support
ребята, привет, нудна помощь. У нас настроен ggr + selenoid с аплоадом видяшек на s3, в итоге все видяшки льються на бакет с ссылкой http://s3/real-session-id. Но проблема в том что ggr нам отдает test-session-id (используем driver.getSessionId()) и в итоге мы не можем найти правильную ссылку на файл и приаттачить к нужному тесту, подскажите как можно вытянуть real-session-id
источник

АА

Александр Андряшин... in Aerokube Support
Dmytro Tsvirkun
ребята, привет, нудна помощь. У нас настроен ggr + selenoid с аплоадом видяшек на s3, в итоге все видяшки льються на бакет с ссылкой http://s3/real-session-id. Но проблема в том что ggr нам отдает test-session-id (используем driver.getSessionId()) и в итоге мы не можем найти правильную ссылку на файл и приаттачить к нужному тесту, подскажите как можно вытянуть real-session-id
подрежьте у айдишника который возвращает ggr первые 32 символа и получите то что вам нужно...
источник