U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » Library for Selenium WebDriver
Library for Selenium WebDriver [message #56024] Thu, 14 January 2021 21:25 Go to previous message
nodebot is currently offline  nodebot
Messages: 3
Registered: January 2021
Junior Member
Hello,

I developed a library that can be used in browser test automation according to W3Driver standards. You can find more information about driver standards and my library.

The below code opens chrome browser and query "Ultimatepp". I hope you can enjoy it.

#include <Core/Core.h>
#include "driver.hpp"

using namespace Upp;

CONSOLE_APP_MAIN
{
	driver brw;
	brw.setBrowser("CHROME");
	brw.createSession();
	brw.navigateTo("www.google.com");
	brw.waitUntilPageLoad();
	String searchField;
	brw.findElement("//input[@name='q']",searchField);
	brw.type(searchField,"ultimatepp");
	brw.type(searchField,"{ENTER}");
	Sleep(10000);
	brw.closeWindow();
}

  • Attachment: w3driver.zip
    (Size: 8.51KB, Downloaded 430 times)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bazaar/GTestUIExample
Next Topic: How to move packages from bazaar to github repo and UppHub
Goto Forum:
  


Current Time: Wed May 13 03:05:30 GMT+2 2026

Total time taken to generate the page: 0.00492 seconds