bazelbuild / rules_webtesting

Bazel rules to allow testing against a browser with WebDriver.
Apache License 2.0
96 stars 56 forks source link

Add support for C++ #466

Closed Vertexwahn closed 7 months ago

Vertexwahn commented 11 months ago

https://github.com/GermanAizek/webdriverxx has a nice C++ API to put together requests for Selenium:

#include "webdriverxx.h"

using namespace webdriverxx;

int main()
{
  FirefoxOptions opts;
  WebDriver browser = Start(Firefox());
  browser.Navigate("https://duckduckgo.org");
  Element elem = browser.FindElement(ByCss("input[name=q]"));
  elem.SendKeys("sha512 helloworld");
  elem.Submit();
  getchar();

  return 0;
}

would be nice if there would be a "binding" for C++?

How hard is it to add a rule that works like this?

cpp_web_test_suite(
    name = "browser_test",
    srcs = ["browser_test.cpp"],
    browsers = [
        "@io_bazel_rules_webtesting//browsers:chromium-local",
    ],
    local = True,
    deps = ["@io_bazel_rules_webtesting//testing/web"],
)
prachin77 commented 7 months ago

would you pls assign me this issue @Vertexwahn

Vertexwahn commented 7 months ago

@prachin77 I do not have the right to assign an item to someone in this repository. If you start to work on this issue a short notice here (and maybe a link to your PR) should be sufficient

mtrea commented 7 months ago

Raising this to the team to discuss

mtrea commented 7 months ago

Hi, I talked it over and we'd prefer to not have C++ support added. You're welcome to fork this and add it to the fork, but we're not in a position to be supporting/maintaining this. Sorry, I know this isn't the answer you were looking for.

prachin77 commented 7 months ago

it's totally ok @mtrea . my intention was to have a exposure of open source contribution and to understand the flow of how it works . i'm also looking for a internship in a company pls help me get it or it will be very supportive from you if you'll help me get an interview with someone . i'm havin knowledge in my realms .