Skip to content

Commit c2ad8d4

Browse files
committed
Merge branch 'release/4.2.0'
2 parents 5b1a093 + c43f01e commit c2ad8d4

File tree

50 files changed

+869
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+869
-566
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,23 @@ If you are interested in more information about Kameleo, or have encountered an
4040

4141
### Examples index
4242

43-
| Folder | Description |
44-
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45-
| automate_mobile_profiles_on_desktop | This code shows you how to emulate a mobile device in Chroma browser. And how to drive it with Selenium or any other automation framework. |
46-
| basic_profile_operations | Shows basic profile operations with the Kameleo API, like finding the right fingerprint, creating profiles, duplicating them, modifying their spoofing options, launching the browser. |
47-
| clean_workspace | Delete the profiles in your Kameleo Workspace. Useful when migrating to Kameleo 3, in particular. |
48-
| connect_with_playwright_to_chrome | This code shows how to start a Chromium-based browser in Kameleo and automate tasks using the [Playwright](https://playwright.dev/) framework. |
49-
| connect_with_playwright_to_firefox | This code illustrates how to start a Firefox in Kameleo and then automate actions using the [Playwright](https://playwright.dev/) framework. |
50-
| connect_with_puppeteer | This code illustrates how to start a Chromium based browser in Kameleo and then automate actions using the [Puppeteer](https://pptr.dev/) framework. |
51-
| connect_with_selenium | This code shows you how to launch a browser in Kameleo, perform actions using [Selenium](https://www.selenium.dev/) commands, and then close the browser. |
52-
| cookie_robot | Shows warming up the profile by visiting well-known sites so the browser has their cookies. This can make make the profile more trustworthy to other sites. |
53-
| manage_cookies | Kameleo allows you to edit, modify or create cookies with just a few lines of code. |
54-
| profile_export_import | This is a quick example of saving and loading profiles to/from .kameleo files on your computer. |
55-
| start_browser_with_additional_options | Check out this example if you want to pass command-line arguments or extra [Selenium](https://www.selenium.dev/) capabilities when starting a browser. |
56-
| start_with_proxy | Kameleo makes it easy to use any HTTP, SOCKS, or SSH proxy. Check out these few lines of code to see how. |
57-
| take_screenshot_with_puppeteer | Shows launching a Kameleo profile and taking a screenshot of a website using the [Puppeteer](https://pptr.dev/) framework. |
58-
| upgrade_profile | If you reuse virtual browser profiles and you would like to update the spoofed browser version you should follow this example. |
43+
| Folder | Description |
44+
| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45+
| automate_mobile_profiles_on_desktop | This code shows you how to emulate a mobile device in Chroma browser. And how to drive it with Selenium or any other automation framework. |
46+
| basic_profile_operations | Shows basic profile operations with the Kameleo API, like finding the right fingerprint, creating profiles, duplicating them, modifying their spoofing options, launching the browser. |
47+
| clean_workspace | Delete the profiles in your Kameleo Workspace. Useful when migrating to Kameleo 3, in particular. |
48+
| connect_with_playwright_to_chrome | This code shows how to start a Chromium-based browser in Kameleo and automate tasks using the [Playwright](https://playwright.dev/) framework. |
49+
| connect_with_playwright_to_firefox | This code illustrates how to start a Firefox in Kameleo and then automate actions using the [Playwright](https://playwright.dev/) framework. |
50+
| connect_with_puppeteer | This code illustrates how to start a Chromium based browser in Kameleo and then automate actions using the [Puppeteer](https://pptr.dev/) framework. |
51+
| connect_with_selenium | This code shows you how to launch a browser in Kameleo, perform actions using [Selenium](https://www.selenium.dev/) commands, and then close the browser. |
52+
| cookie_robot | Shows warming up the profile by visiting well-known sites so the browser has their cookies. This can make make the profile more trustworthy to other sites. |
53+
| modify_network_request_response_with_playwright | Launch a Kameleo profile, intercept and modify the browser's network traffic with the [Playwright](https://playwright.dev/) framework. |
54+
| manage_cookies | Kameleo allows you to edit, modify or create cookies with just a few lines of code. |
55+
| profile_export_import | This is a quick example of saving and loading profiles to/from .kameleo files on your computer. |
56+
| start_browser_with_additional_options | Check out this example if you want to pass command-line arguments or extra [Selenium](https://www.selenium.dev/) capabilities when starting a browser. |
57+
| start_with_proxy | Kameleo makes it easy to use any HTTP, SOCKS, or SSH proxy. Check out these few lines of code to see how. |
58+
| take_screenshot_with_puppeteer | Shows launching a Kameleo profile and taking a screenshot of a website using the [Puppeteer](https://pptr.dev/) framework. |
59+
| upgrade_profile | If you reuse virtual browser profiles and you would like to update the spoofed browser version you should follow this example. |
5960

6061
- C# only
6162
- `file_upload_with_selenium` - Shows uploading a file to a website using the [Selenium](https://www.selenium.dev/) framework.

dotnet-csharp/automate_mobile_profiles_on_desktop/AutomateMobileProfilesOnDesktop.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
10-
<PackageReference Include="Selenium.WebDriver" Version="4.31.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
10+
<PackageReference Include="Selenium.WebDriver" Version="4.35.0" />
1111
</ItemGroup>
1212

1313
</Project>

dotnet-csharp/basic_profile_operations/BasicProfileOperations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
1010
</ItemGroup>
1111

1212
</Project>

dotnet-csharp/basic_profile_operations/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
$"{fingerprint.Os.Family} {fingerprint.Os.VarVersion} - {fingerprint.Browser.Product} {fingerprint.Browser.VarVersion}");
2727
}
2828

29-
// Select a random fingerprint
30-
var selectedFingerprint = fingerprints[Random.Shared.Next(0, fingerprints.Count - 1)];
29+
// Select a fingerprint
30+
var selectedFingerprint = fingerprints[0];
3131

3232
Console.WriteLine(
3333
$"Selected fingerprint: {selectedFingerprint.Os.Family} {selectedFingerprint.Os.VarVersion} - " +
@@ -38,9 +38,9 @@
3838
var createProfileRequest = new CreateProfileRequest(selectedFingerprint.Id)
3939
{
4040
Name = "create profile example",
41-
Language = "es-es",
41+
Language = "es-ES",
4242
Webgl = WebglSpoofingType.Noise,
43-
WebglMeta = new (WebglMetaSpoofingType.Manual,
43+
WebglMeta = new(WebglMetaSpoofingType.Manual,
4444
new WebglMetaSpoofingOptions("Google Inc.", "ANGLE (Intel(R) HD Graphics 630 Direct3D11 vs_5_0 ps_5_0)")),
4545
PasswordManager = PasswordManagerType.Enabled,
4646
StartPage = "https://kameleo.io",

dotnet-csharp/clean_workspace/CleanWorkspace.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
1010
</ItemGroup>
1111

1212
</Project>

dotnet-csharp/connect_with_playwright_to_chrome/ConnectWithPlaywrightToChrome.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
10-
<PackageReference Include="Microsoft.Playwright" Version="1.48.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
10+
<PackageReference Include="Microsoft.Playwright" Version="1.53.0" />
1111
</ItemGroup>
1212

1313
</Project>

dotnet-csharp/connect_with_playwright_to_firefox/ConnectWithPlaywrightToFirefox.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
10-
<PackageReference Include="Microsoft.Playwright" Version="1.48.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
10+
<PackageReference Include="Microsoft.Playwright" Version="1.53.0" />
1111
</ItemGroup>
1212

1313
</Project>

dotnet-csharp/connect_with_puppeteer/ConnectWithPuppeteer.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
10-
<PackageReference Include="PuppeteerSharp" Version="20.0.5" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
10+
<PackageReference Include="PuppeteerSharp" Version="20.2.2" />
1111
</ItemGroup>
1212

1313
</Project>

dotnet-csharp/connect_with_selenium/ConnectWithSelenium.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
10-
<PackageReference Include="Selenium.WebDriver" Version="4.31.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
10+
<PackageReference Include="Selenium.WebDriver" Version="4.35.0" />
1111
</ItemGroup>
1212

1313
</Project>

dotnet-csharp/cookie_robot/CookieRobot.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Kameleo.LocalApiClient" Version="4.1.0" />
10-
<PackageReference Include="Selenium.WebDriver" Version="4.31.0" />
9+
<PackageReference Include="Kameleo.LocalApiClient" Version="4.2.0" />
10+
<PackageReference Include="Selenium.WebDriver" Version="4.35.0" />
1111
</ItemGroup>
1212

1313
</Project>

0 commit comments

Comments
 (0)