Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 219 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 Jul 24 07:08:19 CEST 2024

Total time taken to generate the page: 0.01886 seconds