Selenium for Unity project?

Dear all,

Hello. I’m trying to use selenium for crawling some info. from website in my unity project.

After googling I found selenium and it worked like a charm in native visual C# project.

(They use namespase as “using OpenQA.selenium;” and I installed them using nuget)

However, I could not use selenium in Unity project with nuget for Unity since it made tones of errors like, “error CS0433: The type ‘NonSerializedAttribute’ exists in both ‘System.Runtime.Serialization.Formatters, Version=4.0.1.0, Culture=neutral, PublicKeyToken=’ and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=’”.

I also found UnityWebRequest, but it seems I cannot extract text by class ID of the website and only output was blank.

Is there any suggestion?

Thank you!

Sorry for my ignorance. It has been solved by changing API compatibility from netstandard 2.0 to net 4.x…

@Kyunghowon hi, do u have any surce code or git repo that i ca look at :). trying to run selenium with unity

1 Like