protractor

webdriver-manager update-config.json absolute paths

。_饼干妹妹 提交于 2019-12-25 07:46:56
问题 At webdriver-manager\selenium\update-config.json for "last" and "all" JSON parameters, I have absolute paths. How I can set relative paths to them? I tried "..\" and ".\" but it's not working. Any ideas? 回答1: Alright, so this is the design of update-config.json , what it is used for and why it is there. Write update-config.json during update When a user calls webdriver-manager update , the binaries are downloaded and renamed to include the version number. This allows a user to have multiple

Running grunt task multiple times until it fails

烂漫一生 提交于 2019-12-25 07:46:30
问题 What is the canonical way to run the same grunt task continuously, multiple times until it fails? I'd like to keep the question generic, but here is a specific use case: We have a huge set of end-to-end tests written in Protractor which we run via grunt with the help of grunt-protractor-runner and grunt-contrib-connect. What we'd like to do is to keep the connect task running (the web-server serving from a dist directory) while looping over the protractor until it fails (or/and up to N times)

Using external file for suite names in protractor

左心房为你撑大大i 提交于 2019-12-25 07:13:36
问题 I need some help to parameterize my test suites. I want to create a Json file Suites.json and define suites in this file module.exports = { Suites: Smoke: 'File1.spec.js','File2.spec.js', Main: 'File1.spec.js','File2.spec.js','File3.spec.js' } Now i want to use this Json file in protractor.conf.js I imported JSON file: var SuiteFile = require('../Suites.json') Now if i want to us in my actual Conf file, i am not sure how to use it. Should i just say: suites: SuitesFile Can someone please

verify table data in protractor

こ雲淡風輕ζ 提交于 2019-12-25 06:32:58
问题 i want to verify whether the year column is having 2017 or not. below is the screenshot and html snippet table html code: <table class="htCore table table-condensed table-bordered table-hover"><colgroup><col style="width: 200px;"><col style="width: 200px;"><col style="width: 200px;"><col style="width: 200px;"><col style="width: 200px;"></colgroup><thead><tr><th><div class="relative"><span class="colHeader columnSorting">Year</span><div class="manualColumnMover"></div></div></th><th><div class

Protractor unable to select dropdown option

一世执手 提交于 2019-12-25 06:01:57
问题 Hi I have been doing protractor test and I'm having a problem with my tests. My ionic app do have a drop down having a model name and I tried to access it using the model name and it works but the problem is it can not select the exact option that i need to select from that dropdown option. It selects only the first one? I wrote the protractor syntax like this. element(by.model('generalPowerOfAttorney.grantorGeneralPowerOfAttorneyForm.region')).$('[value="59"]').click(); But this code selects

Protractor unable to select dropdown option

北城以北 提交于 2019-12-25 06:01:10
问题 Hi I have been doing protractor test and I'm having a problem with my tests. My ionic app do have a drop down having a model name and I tried to access it using the model name and it works but the problem is it can not select the exact option that i need to select from that dropdown option. It selects only the first one? I wrote the protractor syntax like this. element(by.model('generalPowerOfAttorney.grantorGeneralPowerOfAttorneyForm.region')).$('[value="59"]').click(); But this code selects

Headless protractor tests don't plug on Xvfb

感情迁移 提交于 2019-12-25 05:06:04
问题 I'm trying to run Protractor tests both in command line and with Jenkins. Both fail with the same error. Command line I opened a prompt and launched webdriver-manager start In another prompt, I launched Xvfb :42 -ac -screen 0 1024x768x24 & In a third one, I eventually launched protractor myconf.js Jenkins In my build, I checked "Start Xvfb before the build, and shut it down after.". I run the tests in a shell script. sh 'sudo webdriver-manager clean' sh 'sudo webdriver-manager update' sh

Headless protractor tests don't plug on Xvfb

爷,独闯天下 提交于 2019-12-25 05:05:03
问题 I'm trying to run Protractor tests both in command line and with Jenkins. Both fail with the same error. Command line I opened a prompt and launched webdriver-manager start In another prompt, I launched Xvfb :42 -ac -screen 0 1024x768x24 & In a third one, I eventually launched protractor myconf.js Jenkins In my build, I checked "Start Xvfb before the build, and shut it down after.". I run the tests in a shell script. sh 'sudo webdriver-manager clean' sh 'sudo webdriver-manager update' sh

Why I am not able be see any expect methods like .toBe () in Protractor?

强颜欢笑 提交于 2019-12-25 05:02:03
问题 Why I am not able to see any methods for expect in protractor? For example when use expect in protractor like below expect(true).toBe(true); After the dot I don't find any method as shown above toBe() C:\>npm -g list C:\Users\x216526\AppData\Roaming\npm +-- protractor@4.0.3 | +-- adm-zip@0.4.7 | +-- chalk@1.1.3 | | +-- ansi-styles@2.2.1 | | +-- escape-string-regexp@1.0.5 | | +-- has-ansi@2.0.0 | | | `-- ansi-regex@2.0.0 | | +-- strip-ansi@3.0.1 | | `-- supports-color@2.0.0 | +-- glob@7.0.5 |

Protractor Debugging Issue - Waiting for the debugger to disconnect

折月煮酒 提交于 2019-12-25 02:26:08
问题 I am trying to debug protractor scripts on VSCode. I edited the launch.json file but the debug console throws the below error. Here is the VSCode Debug Console Output: C:\Program Files\nodejs\node.exe --inspect-brk=45448 conf.js C:\Users\abc\AppData\Roaming\npm\node_modules\protractor\example/conf.js Debugger listening on ws://127.0.0.1:45448/ab61a2d7-4b40-456b-86cb-838e94dfe5b0 Debugger attached. Waiting for the debugger to disconnect... I am not able to find a solution anywhere online