Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 985 Bytes
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using FluentSharp.Watin;
//O2Ref:FluentSharp.Watin.dll
//O2Ref:Watin.Core.dll
//O2Ref:Interop.SHDocVw.dll
//O2Ref:Microsoft.mshtml.dll
namespace O2.XRules.Database.HacmeBank
{
public class JPetClinic_BlackBox_Exploits
{
private string StartUrl {get; set;}
private WatiN_IE Browser {get; set;}
public JPetClinic_BlackBox_Exploits(WatiN_IE browser, string startUrl)
{
Browser = browser;
StartUrl = "http://127.0.0.1:8080/petclinic";
}
public void open_PetClinic_login_page()
{
Browser.open(StartUrl);
}
public void open_Owners_page()
{
Browser.open(StartUrl);
Browser.link("Find owner").click();
}
}
}