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 next 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 88 times)
Re: Library for Selenium WebDriver [message #56026 is a reply to message #56024] Sat, 16 January 2021 06:25 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 380
Registered: March 2007
Senior Member
Hi nodebot:

Thanks for sharing. I got this error.

Can not load CHROME.settings
Re: Library for Selenium WebDriver [message #56035 is a reply to message #56026] Sun, 17 January 2021 08:50 Go to previous messageGo to next message
nodebot is currently offline  nodebot
Messages: 3
Registered: January 2021
Junior Member
Hello,

I attached the CHROME.settings file. And you must also put ChromeDriver.exe under driver folder. You can download the right version of it according to your browser version

https://chromedriver.chromium.org/downloads
Re: Library for Selenium WebDriver [message #56042 is a reply to message #56035] Sun, 17 January 2021 23:17 Go to previous message
Lance is currently offline  Lance
Messages: 380
Registered: March 2007
Senior Member
Thanks, nodebot!
Previous Topic: Bazaar/GTestUIExample
Next Topic: MessageCtrl: A passive notifications ctrl and manager.
Goto Forum:
  


Current Time: Mon Oct 18 10:02:06 CEST 2021

Total time taken to generate the page: 0.00889 seconds