Skip to content

Commit 3dfccbb

Browse files
authored
Finished translating chrome_devtools.pt-br.md to Brazilian Portuguese (SeleniumHQ#1050)
* Finished translating chrome_devtools.pt-br.md to Brazilian Portuguese Finished translating the entire page located at website_and_docs/content/documentation/webdriver/bidirectional/chrome_devtools.pt-br.md to Brazilian Portuguese and replaced all the remaining English text that could still be found there with its Portuguese counterpart. * Remove page needs translation warning since chrome_devtools.pt-br.md has been completely translated to Brazilian Portuguese Remove page needs translation warning since chrome_devtools.pt-br.md has been completely translated to Brazilian Portuguese * Fixed deviceScaleFacor Fixed deviceScaleFactor that wasn't supposed to be translated [deploy site]
1 parent e5e3170 commit 3dfccbb

File tree

1 file changed

+26
-40
lines changed

1 file changed

+26
-40
lines changed

website_and_docs/content/documentation/webdriver/bidirectional/chrome_devtools.pt-br.md

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Chrome DevTools Protocol"
3-
linkTitle: "Chrome DevTools Protocol"
2+
title: "Chrome DevTools"
3+
linkTitle: "Chrome DevTools"
44
weight: 5
55
aliases: [
66
"/documentation/pt-br/support_packages/chrome_devtools/",
@@ -9,37 +9,25 @@ aliases: [
99
---
1010

1111
{{% pageinfo color="warning" %}}
12-
<p class="lead">
13-
<i class="fas fa-language display-4"></i>
14-
Page being translated from
15-
English to Portuguese. Do you speak Portuguese? Help us to translate
16-
it by sending us pull requests!
17-
</p>
12+
Apesar do Selenium 4 providenciar acesso direto ao Protocolo Chrome DevTools (CDP), é altamente recomendável que você use o [WebDriver Bidi APIs]({{< ref "bidi_api.md" >}}) ao invés do acesso direto.
1813
{{% /pageinfo %}}
1914

20-
{{% pageinfo color="warning" %}}
21-
While Selenium 4 provides direct access to the Chrome DevTools Protocol (CDP), it is
22-
highly encouraged that you use the [WebDriver Bidi APIs]({{< ref "bidi_api.md" >}}) instead.
23-
{{% /pageinfo %}}
24-
25-
Many browsers provide "DevTools" -- a set of tools that are integrated with the browser that
26-
developers can use to debug web apps and explore the performance of their pages. Google Chrome's
27-
DevTools make use of a protocol called the Chrome DevTools Protocol (or "CDP" for short).
28-
As the name suggests, this is not designed for testing, nor to have a stable API, so functionality
29-
is highly dependent on the version of the browser.
15+
Muitos navegadores fornecem o "DevTools", um conjunto de ferramentas integradas ao navegador, que
16+
desenvolvedores podem usar para depurar web apps analisar o desempenho de suas páginas. O DevTools do Google Chrome faz o uso de um protocolo chamado Protocolo Chrome DevTools (abreviado como "CDP").
17+
Como o nome sugere, ele não foi projetado para testes, ou tem uma API estável, portanto, sua funcionalidade depende muito da versão do navegador de internet.
3018

31-
WebDriver Bidi is the next generation of the W3C WebDriver protocol and aims to provide a stable API
32-
implemented by all browsers, but it's not yet complete. Until it is, Selenium provides access to
33-
the CDP for those browsers that implement it (such as Google Chrome, or Microsoft Edge, and
34-
Firefox), allowing you to enhance your tests in interesting ways. Some examples of what you can
35-
do with it are given below.
19+
WebDriver Bidi é a próxima geração do protocolo W3C WebDriver e visa fornecer uma API estável
20+
implementado por todos os navegadores, mas ele ainda não está completo. Até que seja, o Selenium fornece acesso ao
21+
CDP para os navegadores que o implementam (como Google Chrome ou Microsoft Edge e
22+
Firefox), permitindo que você aprimore seus testes de maneiras interessantes. Alguns exemplos do que você pode
23+
fazer com ele são dadas abaixo.
3624

37-
## Emulate Geo Location
25+
## Emular Geo Localização
3826

39-
Some applications have different features and functionalities across different
40-
locations. Automating such applications is difficult because it is hard to emulate
41-
the geo-locations in the browser using Selenium. But with the help of Devtools,
42-
we can easily emulate them. Below code snippet demonstrates that.
27+
Alguns aplicativos têm recursos e funcionalidades diferentes em diferentes
28+
locations. Automatizar esses tipos de aplicativos é complicado porque é difícil emular
29+
as geolocalizações no navegador usando o Selenium. Mas com a ajuda do Devtools,
30+
podemos facilmente as emular. O trecho do código abaixo demonstra isso.
4331

4432
{{< tabpane langEqualsHeader=true >}}
4533
{{< tab header="Java" >}}
@@ -104,7 +92,7 @@ require 'selenium-webdriver'
10492
driver = Selenium::WebDriver.for :chrome
10593

10694
begin
107-
# Latitude and longitude of Tokyo, Japan
95+
# Latitude e longitude de Tóquio, Japão
10896
coordinates = { latitude: 35.689487,
10997
longitude: 139.691706,
11098
accuracy: 100 }
@@ -133,7 +121,7 @@ fun main() {
133121
{{< /tab >}}
134122
{{< /tabpane >}}
135123

136-
## Emulate Geo Location with the Remote WebDriver:
124+
## Emular localização geográfica com o Remote WebDriver:
137125

138126
{{< tabpane langEqualsHeader=true >}}
139127
{{< tab header="Java" >}}
@@ -210,7 +198,7 @@ driver = Selenium::WebDriver.for(
210198
:capabilities => :chrome)
211199

212200
begin
213-
# Latitude and longitude of Tokyo, Japan
201+
# Latitude e longitude de Tóquio, Japão
214202
coordinates = { latitude: 35.689487,
215203
longitude: 139.691706,
216204
accuracy: 100 }
@@ -289,12 +277,10 @@ fun main() {
289277
{{< /tab >}}
290278
{{< /tabpane >}}
291279

292-
## Override Device Mode
280+
## Modo de Dispositivo Override
293281

294-
Using Selenium's integration with CDP, one can override the current device
295-
mode and simulate a new mode. Width, height, mobile, and deviceScaleFactor
296-
are required parameters. Optional parameters include scale, screenWidth,
297-
screenHeight, positionX, positionY, dontSetVisible, screenOrientation, viewport, and displayFeature.
282+
Usando a integração do Selenium com o CDP, pode-se substituir o modo do dispositivo atual e simular um novo modo. Width(largura), Height(altura), mobile(mobilidade) e deviceScaleFactor são parâmetros obrigatórios. Parâmetros opcionais incluem scale(escala), screenWidth(largura da tela),
283+
screenHeight(altura da tela), positionX, positionY, dontSetVisible(não setar como visível), screenOrientation(orientação da tela), viewport e displayFeature.
298284

299285
{{< tabpane langEqualsHeader=true >}}
300286
{{< tab header="Java" >}}
@@ -319,7 +305,7 @@ driver.get("https://selenium.dev/");
319305
driver.quit();
320306
{{< /tab >}}
321307
{{< tab header="Python" >}}
322-
# Please raise a PR to add code sample
308+
# Por favor, crie um PR para adicionar uma amostra de código
323309
{{< /tab >}}
324310
{{< tab header="CSharp" >}}
325311
using OpenQA.Selenium;
@@ -428,9 +414,9 @@ fun kotlinOverridDeviceMode() {
428414
{{< /tab >}}
429415
{{< /tabpane >}}
430416

431-
## Collect Performance Metrics
417+
## Coletando Métricas de Desempenho
432418

433-
Collect various performance metrics while navigating the application.
419+
Colete várias métricas de desempenho enquanto navega no aplicativo.
434420

435421
{{< tabpane langEqualsHeader=true >}}
436422
{{< tab header="Java" >}}
@@ -453,7 +439,7 @@ public void performanceMetricsExample() {
453439
}
454440
{{< /tab >}}
455441
{{< tab header="Python" >}}
456-
# Please raise a PR to add code sample
442+
# Por favor, crie um PR para adicionar uma amostra de código
457443
{{< /tab >}}
458444
{{< tab header="CSharp" >}}
459445
// File must contain the following using statements

0 commit comments

Comments
 (0)