durdyev / webdriverxx

A C++ client library for Selenium Webdriver
MIT License
207 stars 42 forks source link

Exception handler #10

Open Mecanik opened 4 years ago

Mecanik commented 4 years ago

First thing, amazing project. Just amazing. You saved me a TON of time.

Is there a way to catch/handle these sort of exceptions ? https://prnt.sc/spbhlg

This happens when I try to use proxies, and the weird thing is that eventually the browser loads.

Mecanik commented 4 years ago

It seems like in my case it is crashing because:

org.openqa.selenium.InvalidArgumentException: invalid argument: entry 0 of 'firstMatch' is invalid
from invalid argument: cannot parse capability: proxy
from invalid argument: Specifying 'socksProxy' requires an integer for 'socksVersion'

So back again to the question, how to catch these errors and show some details ?

Thanks