Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -489,21 +489,21 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
options.addCommandSwitches("-k");
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
options.addCommandSwitches("-k")
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
println(caps);
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down Expand Up @@ -590,20 +590,20 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,21 +484,21 @@ driver = await env.builder()
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
options.addCommandSwitches("-k");
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
options.addCommandSwitches("-k")
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
println(caps);
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down Expand Up @@ -585,20 +585,20 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,21 +485,21 @@ driver = await env.builder()
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
options.addCommandSwitches("-k");
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
options.addCommandSwitches("-k")
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
println(caps);
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down Expand Up @@ -586,20 +586,20 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,21 +491,21 @@ driver = await env.builder()
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
options.addCommandSwitches("-k");
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
options.addCommandSwitches("-k")
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
println(caps);
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down Expand Up @@ -592,20 +592,20 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,21 +476,21 @@ driver = await env.builder()
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
options.addCommandSwitches("-k");
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
options.addCommandSwitches("-k")
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps);
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down Expand Up @@ -576,20 +576,20 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,19 +490,19 @@ driver = await env.builder()
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
options.addCommandSwitches("-k");
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
options.addCommandSwitches("-k")
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
println(caps);
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
}
Expand Down Expand Up @@ -591,20 +591,20 @@ driver = await env.builder()
.build();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerOptions;
import org.openqa.selenium.Capabilities
import org.openqa.selenium.ie.InternetExplorerDriver
import org.openqa.selenium.ie.InternetExplorerOptions

fun main() {
val options = InternetExplorerOptions();
options.useCreateProcessApiToLaunchIe();
val driver = InternetExplorerDriver(options);
val options = InternetExplorerOptions()
options.useCreateProcessApiToLaunchIe()
val driver = InternetExplorerDriver(options)
try {
driver.get("https://google.com/ncr");
val caps = driver.getCapabilities();
driver.get("https://google.com/ncr")
val caps = driver.getCapabilities()
println(caps)
} finally {
driver.quit();
driver.quit()
}
}
{{< / code-panel >}}
Expand Down
Loading