Following the Chrome-Hijacking posts, I’m starting to convert the WatiN Extension methods into ChromeDriver, and to do so needed to execute requests side-by-side (to test the APIs and to be able to write UnitTests for them).
To do that (side-by-side Chrome and IE execution) I wrote this script:
A personal blog about: transforming Web Application Security into an 'Application Visibility' engine, the OWASP O2 Platform, Application/Data interoperability and a lot more
Showing posts with label Selenium. Show all posts
Showing posts with label Selenium. Show all posts
Saturday, 29 June 2013
Saturday, 22 June 2013
When the best way to automate Chrome is to use ... Chrome (with examples on Google search, direct AngularJS scope manipulation and ChromeDriver javascript access)
On the topic of Web Automation, I always wanted to have a REPL environment for Chrome like I have for IE (using Watin).
In the past I have explored multiple solutions, for example the use of CefSharp (see here and here). But that was never the real thing, and there was always a couple issues (caused by the fact that the ‘real’ chrome wasn't being used).
For a while, in the back on my mind the solution was simple and obvious: Use the real Chrome process in a way that it can be programmatically accessed from an O2’s C# repl environment!
Well, the good news is that is exactly what I have done :)
I just created the Gui you can see below, which uses the Window-Hikacking technique to inject an (Selenium's ChromeDriver started) Chrome process' window in a Panel, and pass its reference (as a variable) to an O2 REPL environment.
In the past I have explored multiple solutions, for example the use of CefSharp (see here and here). But that was never the real thing, and there was always a couple issues (caused by the fact that the ‘real’ chrome wasn't being used).
For a while, in the back on my mind the solution was simple and obvious: Use the real Chrome process in a way that it can be programmatically accessed from an O2’s C# repl environment!
Well, the good news is that is exactly what I have done :)
I just created the Gui you can see below, which uses the Window-Hikacking technique to inject an (Selenium's ChromeDriver started) Chrome process' window in a Panel, and pass its reference (as a variable) to an O2 REPL environment.
Friday, 7 June 2013
Controlling Selenium and Chrome WebDriver from a C# REPL GUI (while fixing UnitTest)
When I was Running TeamMentor WebAutomation UnitTests locally (using Selenium and ChromeDriver), there were a number of TeamMentor's UnitTests that failed, and could not be fixed with simple changes or re-execution
This post shows how I used the O2 Platform's FluentSharp REPL script_Me capabilities to debug the problem and find a solution.
This post shows how I used the O2 Platform's FluentSharp REPL script_Me capabilities to debug the problem and find a solution.
Labels:
O2 Platform,
REPL,
Selenium,
TeamMentor
Running TeamMentor WebAutomation UnitTests locally (using Selenium and ChromeDriver)
If you want to run the TeamMentor's WebAutomation UnitTests (for example to see how we use Selenium and the multiple WebDrivers, like ChromeDriver), there are couple gotchas that you will need to take into account.
This post shows how I went from a git clone to a full execution of all unit tests.
This post shows how I went from a git clone to a full execution of all unit tests.
Labels:
Chrome,
Selenium,
TeamMentor
Wednesday, 10 April 2013
AppSscan Enterprise & Selenium (can you help?)
Early today I received this question:
"I've been looking for a way to integrate Appscan Enterprise with Selenium and noted some blog posts of yours that show integration with Appscan for various purposes.
"I've been looking for a way to integrate Appscan Enterprise with Selenium and noted some blog posts of yours that show integration with Appscan for various purposes.
I would like to know if you have any ideas on how it may be possible to glue together Selenium & Appscan. I'm wishing there was a way to port Selenium to Manual Explore."
to which I replied:
to which I replied:
Tuesday, 22 January 2013
PoC - Selenium - Gui with 3 Hijacked Browser Windows.h2
While working on TeamMentor’s browser automation using Selenium, I created a pretty cool PoC/Script where I was able to show natively the 3 main browsers (IE, Firefox and Chrome) in the same Application/GUI.
The O2 Platform script is called PoC - Selenium - Gui with 3 Hijacked Browser Windows.h2, and this is what it looks like when opened up:
The O2 Platform script is called PoC - Selenium - Gui with 3 Hijacked Browser Windows.h2, and this is what it looks like when opened up:
Labels:
O2 Platform,
Selenium,
TeamMentor,
WinAPI
Saturday, 19 January 2013
Using TeamCity and NUnit to Start WebServer, Run Selenium Tests and Stop WebServer
Following the move to split the TeamMentor Brower automation tests into the UnitTests_WebAutomation repository, I just committed a bunch of git pushes (from here up to here) and customized a TeamCity project , so that TeamCity EC2 box will:
Labels:
NUnit,
Selenium,
TeamMentor
Friday, 11 January 2013
Using Selenium to Login using Multiple Browsers
Following from yesterday's posts:
- Coding Firefox in C# in real-time using Selenium's Firefox driver and
- OpenQA.Selenium.DriverServiceNotFoundException on Chrome
Labels:
NUnit,
Selenium,
TeamMentor,
Unit Tests
Thursday, 10 January 2013
OpenQA.Selenium.DriverServiceNotFoundException on Chrome
While trying to running a TeamMentor UnitTest in Chrome I got this error:
Labels:
NUnit,
REPL,
Selenium,
TeamMentor,
Unit Tests
Coding Firefox in C# in real-time using Selenium's Firefox driver
The best way to write and debug Selenium Web Automation scripts is to be able to be able to write code snippets in real time (in a REPL)
This post will show how I just did that for the TeamMentor’s UnitTests environment that Michael Hidalgo is working on.
This post will show how I just did that for the TeamMentor’s UnitTests environment that Michael Hidalgo is working on.
Labels:
NUnit,
REPL,
Selenium,
TeamMentor,
Unit Tests
Subscribe to:
Posts (Atom)