The post Webdriver | Launch Headless Browser Using Testmate | PhantomJS appeared first on TestMate.
]]>'Initialize the driver
wd.PJSInitializeDriver("C:\Users\...\Driverpath")
'wd.NavigateToUrl("www.google.com")
Call wd.NavigateToUrl("https://jqueryui.com/droppable/")
'Switch to the frame using xpath as identifier
Call wd.SwitchToFrame("xpath::.//*[@id='content']/iframe")
'Initialize Action object
Call wd.ActionInitialize()
'Add an action to the initialized action object
Call wd.ActionDragAndDrop("id::draggable","id::droppable")
'Perform the action
Call wd.ActionPerform()
'Report the step
Logger.Pass "Step 1", wd.GetTitle(), True
'Quit The driver
Call wd.Quit()
The post Webdriver | Launch Headless Browser Using Testmate | PhantomJS appeared first on TestMate.
]]>