Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jgmkanwar's avatar

LARAVEL DUSK using proxy

I want to use proxy in laravel dusk but found issue. can any one solve my problem ? I have tried things but not successful yet .

$capabilities = new DesiredCapabilities([ WebDriverCapabilityType::BROWSER_NAME => WebDriverBrowserType::CHROME, WebDriverCapabilityType::PLATFORM => WebDriverPlatform::ANY, WebDriverCapabilityType::PROXY => [ 'proxyType' => 'manual', 'httpProxy' => 'http://193.xxx.33.6:8085', 'sslProxy' => 'http://193.xxx.87.156:8085' ] ],$options); return RemoteWebDriver::create( 'http://localhost:9515', DesiredCapabilities::chrome()->setCapability( $capabilities,$options), 90000, 90000 );

0 likes
1 reply
jgmkanwar's avatar

Anyone please help me out. Want to use proxies for each request

Please or to participate in this conversation.