ChromeDriver的javamaven依赖 chrome启用java_html


chrome启用插件

JavaScript is a de facto scripting language for web programming. JavaScript is used to create actions, validation, animation, and communication for web pages and web applications.

JavaScript是用于Web编程的事实上的脚本语言。 JavaScript用于为网页和Web应用程序创建动作,验证,动画和通信。

(Why Enable JavaScript?)

JavaScript is a very important technology for the web. Most of the web sites rely on JavaScript to work properly. Event the web pages can work without JavaScript this will be very limited and poor. By enabling JavaScript all features of the web site can be used like theme changing, actions, animations, applications logic, etc. If JavaScript is disabled, we can enable it easily on the Google Chrome browser.

JavaScript是网络上非常重要的技术。 大多数网站都依靠JavaScript正常运行。 如果网页可以在没有JavaScript的情况下运行,这将是非常有限和糟糕的。 通过启用JavaScript,可以使用网站的所有功能,例如主题更改,动作,动画,应用程序逻辑等。如果禁用了JavaScript,我们可以在Google Chrome浏览器中轻松启用它。

JavaScript gives the website owners the ability to run script and code inside our browsers. This can be a bit tricky and provide some security problems for harmfull web sites.

JavaScript使网站所有者能够在我们的浏览器中运行脚本和代码。 这可能会有些棘手,并为有害网站带来一些安全问题。

(Enable JavaScript In Chrome)

JavaScript can be enabled from the “Settings” menu of the Chrome browser. We will open settings from the menu below. Alternatively we can use the following URL in order to access the JavaScript setting screen directly.

可以从Chrome浏览器的“设置”菜单中启用JavaScript。 我们将从下面的菜单中打开设置。 另外,我们可以使用以下URL来直接访问JavaScript设置屏幕。

chrome://settings/content/javascript


ChromeDriver的javamaven依赖 chrome启用java_脚本语言_02

Enable JavaScript In Chrome 在Chrome中启用JavaScript

In the following settings screen, we will navigate to the “Privacy and security” section and click to the “Site Settings” like below. “Site Settings” configuration is related to all sites we are browsing not just a specific site.

在以下设置屏幕中,我们将导航至“隐私和安全性”部分,然后单击如下所示的“站点设置”。 “站点设置”配置与我们正在浏览的所有站点有关,而不仅仅是特定站点。


ChromeDriver的javamaven依赖 chrome启用java_nagios_03

Open Site Settings In Chrome 在Chrome中打开网站设置

There are different configuration on the site settings screen like “Camera”, “Notifications” and “JavaScript”. We will click to the “JavaScript” like below. Also the current status of the “JavaScript” is printed below where JavaScript is enabled.

网站设置屏幕上有不同的配置,例如“相机”,“通知”和“ JavaScript”。 我们将如下所示单击“ JavaScript”。 此外,在启用JavaScript的下方还会打印“ JavaScript”的当前状态。


ChromeDriver的javamaven依赖 chrome启用java_css_04

JavaScript Configuration For Chrome ChromeJavaScript配置

In the following screen, we see that there are options like “Allow” “Block” etc. We will enable by sliding the “Allow(recommended)” configuration. We see that allowing JavaScript is recommended by GoogleChrome. “Block” and “Allow” sections are used to add specific sites to block or allow JavaScript.

在以下屏幕中,我们看到有诸如“允许”,“阻止”等选项。我们将通过滑动“允许(推荐)”配置来启用。 我们看到GoogleChrome建议允许JavaScript。 “阻止”和“允许”部分用于添加特定站点以阻止或允许JavaScript。


ChromeDriver的javamaven依赖 chrome启用java_css_05

Allow JavaScript On Google Chrome 在Google Chrome上允许JavaScript

(Enable JavaScript For Specific Websites In Chrome)

We can also allow JavaScript for specific sites. We will add the website URL we want to allow JavaScript from the “JavaScript” setting screen which is explained in previous step.

我们也可以允许特定网站使用JavaScript。 我们将从“ JavaScript”设置屏幕中添加我们想要允许JavaScript的网站URL,该步骤已在上一步中进行了说明。


ChromeDriver的javamaven依赖 chrome启用java_脚本语言_06

Enable JavaScript For Specific Websites In Chrome 在Chrome中为特定网站启用JavaScript

We will see the “Add a site” box where we will put the web site URL. In this case we will enable the JavaScript for the “https://poftut.com”.

我们将看到“添加站点”框,其中将放置网站URL。 在这种情况下,我们将为“ https://poftut.com”启用JavaScript。


ChromeDriver的javamaven依赖 chrome启用java_脚本语言_07

Enable JavaScript For Specific Websites In Chrome 在Chrome中为特定网站启用JavaScript

We can see the newly added website address below the “Allow” section. We can also “Block”, “Edit”, “Remove” the web site easily by using menu like below.

我们可以在“允许”部分下方看到新添加的网站地址。 我们还可以使用以下菜单轻松地“阻止”,“编辑”,“删除”网站。


ChromeDriver的javamaven依赖 chrome启用java_css_08

Enable JavaScript For Specific Websites In Chrome 在Chrome中为特定网站启用JavaScript

LEARN MORE  How To Open and Use JavaScript Console In Google Chrome?


了解更多信息如何在Google Chrome中打开和使用JavaScript控制台?


翻译自: https://www.poftut.com/how-to-enable-javascript-in-google-chrome/

chrome启用插件