<commit_before>
:imagesdir: ../../../images

[[sahi-webpack-dev-server]]
===== Sahi and webpack-dev-server
[#git-edit-section]
:page-path: docs/manual/testdefinition/advanced-topics/sahi-webpack.adoc
git-link:{page-path}{git-view} | git-link:{page-path}{git-edit}

Due to issue https://github.com/ConSol/sakuli/issues/295[sahi test not run with webpack dev server #295] Sahi OS have currently some problems with the "auto loading" function of the https://github.com/webpack/webpack-dev-server[webpack-dev-server]. If you use the startup option `webpack-dev-server --inline` Sahi may will throw this error:

[source,bash]
----
....
ERROR [2017-12-01 13:00:12.332] - ERROR:
CASE "tests": _sahi.setServerVar('lastURL', window.document.location.href); Window/Domain not found:  popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=guestbook ...
----

Important in this error message is `Window/Domain not found:  popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0` which will produced by the auto load function https://webpack.js.org/configuration/dev-server/#devserver-inline["inline Hot Module Replacement"]. This automatic refresh won't work well with the http://sahipro.com/docs/introduction/architecture.html#Architecture[Sahi proxy injection architecture], so we have to disable the webpack auto reload function with the `--no-inline` option:

.package.json
[source,json]
----
  "scripts": {
<1> "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
<2> "e2e-server": "webpack-dev-server --no-inline --progress --config build/webpack.dev.conf.js",
  },
----
<1> for development with "auto reload"
<2> for end-to-end testing with disabled "auto reload" for Sakuli

For more the issue https://github.com/ConSol/sakuli/issues/295[#295].
<commit_msg>modify sahi and webpack-dev-server #295<commit_after>
:imagesdir: ../../../images

[[sahi-webpack-dev-server]]
===== Sahi and webpack-dev-server
[#git-edit-section]
:page-path: docs/manual/testdefinition/advanced-topics/sahi-webpack.adoc
git-link:{page-path}{git-view} | git-link:{page-path}{git-edit}

Due to issue https://github.com/ConSol/sakuli/issues/295[sahi test not run with webpack dev server #295] Sahi OS have currently some problems with the "auto loading" function of the https://github.com/webpack/webpack-dev-server[webpack-dev-server]. If you use the startup option `webpack-dev-server --inline` Sahi may will throw this error:

[source,bash]
----
....
ERROR [2017-12-01 13:00:12.332] - ERROR:
CASE "tests": _sahi.setServerVar('lastURL', window.document.location.href); Window/Domain not found:  popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=guestbook ...
----

Important in this error message is `Window/Domain not found:  popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0` which will produced by the auto load function https://webpack.js.org/configuration/dev-server/#devserver-inline["inline Hot Module Replacement"]. This automatic refresh won't work well with the http://sahipro.com/docs/introduction/architecture.html#Architecture[Sahi proxy injection architecture], so we have to disable the webpack auto reload function with the `--no-inline` option:

.package.json
[source,json]
----
  "scripts": {
    <1>
    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
    <2>
    "e2e-server": "webpack-dev-server --no-inline --progress --config build/webpack.dev.conf.js",
  },
----
<1> for development with "auto reload"
<2> for end-to-end testing with disabled "auto reload" for Sakuli

For more the issue https://github.com/ConSol/sakuli/issues/295[#295].

{'fraction_non_alphanumeric': 0.15062195781503515, 'fraction_numerical': 0.020281233098972416, 'mean_word_length': 4.4962852897474, 'pattern_counts': {'":': 8, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4151904', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1142, 'n_words': 324}