1. confirmDialog = new ConfirmDialog(ActiveBrowser, DialogButton.OK);
Manager.DialogMonitor.AddDialog(confirmDialog);
3. Manager.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Enter);
HI,
I am using just Telerik Test Framework. And trying to click button, but it doesn't responds.
What to do? Please, help.
P.S.
I use Viisual Studio 2013 Community Edition, NUnit v.2.6.4
P.P.S.
Attaching project for this. Run TestApplication ones.
We are using the Testing Framework (version 2016_3_0928_5) against a site that is forced to use IE 11 in Enterprise Compatibility Mode and we often see the following exception while executing the tests:
System.InvalidOperationException: Javascript call [var eventObjJSON = 'null';var eventObj = JSON.parse(eventObjJSON);var eventType = "HTMLEvents";var eventName = "change";var evt = document.createEvent(eventType);if (!evt) throw "Error creating event";var altKey = false;var ctrlKey = false;var shiftKey = false;var metaKey = false;if (eventType == "HTMLEvents" || !eventObj) {evt.initEvent(eventName, true, true);}else {if (eventObj.modifiers & 0x01)altKey = true;if (eventObj.modifiers & 0x02)ctrlKey = true;if (eventObj.modifiers & 0x04)shiftKey = true;if (eventObj.modifiers & 0x08)metaKey = true;if (eventType == "MouseEvents") {var button = 0;if (eventObj.button & 1)button = 0;else if (eventObj.button & 2)button = 2;else if (eventObj.button & 4)button = 1;var relatedTarget;if (eventObj.relatedTarget)relatedTarget = eval(eventObj.relatedTarget);evt.initMouseEvent(eventName, true, true, window, 0, eventObj.screenX, eventObj.screenY,0, 0, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget);}else if (eventType == "KeyboardEvent") {var keyCode;var charCode;keyCode = eventObj.keyCode;if (eventName == "keypress") {charCode = eventObj.keyCode;}else {charCode = 0;}var keyNum = String.fromCharCode(parseInt(keyCode)).toUpperCase().charCodeAt(0);var keyIdentifier = "U+00" + keyNum.toString(16);evt.initKeyboardEvent(true, true, window,keyIdentifier,0, ctrlKey, altKey, shiftKey, metaKey);}}var target = document.getElementsByTagName('select')[1];target.dispatchEvent(evt);] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
Has anybody encountered a similar error and found a resolution?
Any help would be greatly appreciated.
Thank you,
Greg
Query 2:
I have multiple test lists (segregated based on the functionality of the software.) How can I execute all the testlists under the TestList folder using ArtofTestRunner?
IF EXIST "C:\Program Files (x86)\Telerik\Test Studio\Bin" goto :a
echo not found
pause
exit
:a
setlocal
path=C:\Program Files (x86)\Telerik\Test Studio\Bin;%path%
call ArtOfTest.Runner.exe list="C:\TFS\TestWare\Branches\10.1\Automated testing\Level7FO\TestLists\%%I"
Dear Telerik Support Team,
I´m using the latest version (released on 28th of September) of Telerik Test Framework - I did not isntall Telerik Test Studio, only the Framwork.
My windows has a build number of 14 393, so I downloaded the correct Microsoft WebDriver exe from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ page. The newest WebDriver gives me a single exe file instead of a full installer. Unfortunately I cannot run my tests on Edge browser, because I always get the following exception: "Microsoft WebDriver is not installed!"
How can I make this working? Even if I copy the newest WebDriver.exe file to my C:\Program Files (x86)\Microsoft Web Driver folder - this is the install path of my old webdriver - , Edge tests are not running at all.
Thanks in advance!
Hi,
I need a While loop that will execute its loop until an element's text content equals 'Active Accounts'. Like so...
while(Verify 'TextContext' 'NotEquals' 'Active Accounts' on QuerySelector)
click selector
Note, using 'Not Contains' in the condition won't work because a possible text content value is 'My Active Accounts', which I must be able to differentiate from 'Active Accounts'.
I tried the Regex negative look ahead expression /^(?!.*Active Accounts)/g, but that didn't work.
So, how can I implement an effective 'NotEquals' in a while loop?
Thanks,
dan
This is the map for the application:screenshot.
I tried to locate one of the buttons using "visible" and "exists".
How can I locate this buton, it seems it is hidden too deep.
What should the approach be ? (It seems the developers build a wizard here which consists from four grids).
Hi:
I am doing my first UI testing. The rendered code can be found in the comments;
public string ValidationError
{
get
{
// <
div
class
=
"validation-summary-errors"
data-valmsg-summary
=
"true"
>
// <
ul
><
li
>The user name or password provided is incorrect.</
li
></
ul
>
// </
div
>
_browser.Manager.ActiveBrowser.AutoDomRefresh = true;
_browser.Manager.ActiveBrowser.RefreshDomTree();
System.Threading.Thread.Sleep(500);
return _browser.Find.ByAttributes<
HtmlDiv
>(_validationErrorsSelector).Find.ByTagIndex("li",0).InnerMarkup;
}
}
I can see the value on the screen, but what is returned is an empty string. It is finding by attribute OK, but the ActiveBrowser DOM does not seem to be what is rendered.
Phil