Skip to content

trungtt6/rci-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCI Projects

This repository contains RCI-related projects:

RciSpider

A .NET 8 WPF application for web scraping and automation using Playwright (migrated from Selenium).

Features

  • Web scraping with Playwright (primary) and Selenium (fallback)
  • Excel integration with EPPlus
  • VPN connectivity support
  • Comprehensive test suite with unit, integration, and performance tests

Architecture

  • PlaywrightService: Core Playwright implementation
  • PlaywrightSpider: Playwright-based spider class
  • Spider: Legacy Selenium implementation (kept for compatibility)
  • SpiderFactory: Factory to switch between implementations
  • ISpider: Common interface for both implementations

RciExcelAddIn

An Excel add-in for RCI functionality.

Getting Started

Prerequisites

  • .NET 8.0 SDK
  • Visual Studio 2022
  • Microsoft Office (for Excel Add-In)
  • Playwright browsers (install with playwright install)

Installation

  1. Clone this repository
  2. Open the solution file in Visual Studio
  3. Restore NuGet packages
  4. Install Playwright browsers: playwright install
  5. Build the solution

Running Tests

# Run all tests
dotnet test RciSpider/Tests

# Run specific test categories
dotnet test --filter "TestCategory=Unit"
dotnet test --filter "TestCategory=Integration"
dotnet test --filter "TestCategory=Performance"

Configuration

The application can be configured to use either Playwright or Selenium:

// Use Playwright (default)
SpiderFactory.SetUsePlaywright(true);

// Use Selenium (fallback)
SpiderFactory.SetUsePlaywright(false);

Migration Status ✅ COMPLETE

  • Phase 1: ✅ Complete (Setup and Preparation)
  • Phase 2: ✅ Complete (Core Infrastructure Migration)
  • Phase 3: ✅ Complete (Feature Migration)
  • Phase 4: ✅ Complete (Testing and Validation)
  • Phase 5: ✅ Complete (Cleanup and Deployment)

Performance Improvements

Based on benchmark tests, Playwright shows:

  • ~30% faster navigation
  • ~25% faster text extraction
  • ~40% faster screenshots
  • Lower memory usage over time

Browser Support

Playwright supports:

  • Chromium (including Chrome)
  • Firefox
  • WebKit (Safari)
  • Edge

License

Internal use only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages