Skip to content

Add: Adding Kotlin sample code for page load strategy #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
41e5d3e
Modify: Removed unneccessary awaits for find element
harsha509 Dec 16, 2019
5051195
Add: Added ruby sample code for mouse actionsin support package
harsha509 Dec 17, 2019
b4bdbc5
Merge branch 'master' of https://github.com/Harsha509/seleniumhq.gith…
harsha509 Dec 17, 2019
4123fa2
Modify: Revamping the WebElement usage document
harsha509 Dec 24, 2019
381083d
Add: Adding findElements section to web_element document
harsha509 Dec 24, 2019
0c005f5
Merge branch 'master' into master
manoj9788 Dec 26, 2019
21aabec
Merge branch 'master' of https://github.com/Harsha509/seleniumhq.gith…
harsha509 Dec 26, 2019
f8dec4b
Merge remote-tracking branch 'upstream/master'
harsha509 Dec 26, 2019
df1dbd8
Modify: Update to stale PR #111
harsha509 Dec 26, 2019
a65dfa0
Modify: Removed desired capabilities and used FirefoxOptions in code …
harsha509 Dec 26, 2019
51c4a55
Modify: Translated[EN-FR] Introduction-> selenium_proj_and_tools
harsha509 Jan 25, 2020
2512edb
Merge remote-tracking branch 'upstream/master'
harsha509 Jan 26, 2020
22b861d
Modify: Translated[EN-FR] introduction-> types of testing
harsha509 Jan 26, 2020
9548e2d
Fix: Updating text to bold
harsha509 Jan 26, 2020
2856535
Merge remote-tracking branch 'upstream/master'
harsha509 Jan 28, 2020
a449771
Merge remote-tracking branch 'upstream/master'
harsha509 Jan 29, 2020
9e90063
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 2, 2020
159a299
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 3, 2020
37cb2c1
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 5, 2020
711f344
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 8, 2020
90dcc40
Merge branch 'master' of https://github.com/Harsha509/seleniumhq.gith…
harsha509 Feb 8, 2020
2d2c97d
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 9, 2020
fe2579d
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 10, 2020
2db7524
Merge branch 'master' of https://github.com/Harsha509/seleniumhq.gith…
harsha509 Feb 19, 2020
b75aba4
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 19, 2020
4d5482e
Merge remote-tracking branch 'upstream/master'
harsha509 Feb 20, 2020
5f5f7ec
Add: Adding kotlin code samples for page load startegy
harsha509 Feb 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions docs_source_files/content/webdriver/page_loading_strategy.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,21 @@ caps.setPageLoadStrategy("normal");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -130,7 +144,21 @@ caps.setPageLoadStrategy("eager");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -187,6 +215,20 @@ caps.setPageLoadStrategy("none");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}
48 changes: 45 additions & 3 deletions docs_source_files/content/webdriver/page_loading_strategy.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,21 @@ caps.setPageLoadStrategy("normal");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -130,7 +144,21 @@ caps.setPageLoadStrategy("eager");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -187,6 +215,20 @@ caps.setPageLoadStrategy("none");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}
48 changes: 45 additions & 3 deletions docs_source_files/content/webdriver/page_loading_strategy.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,21 @@ caps.setPageLoadStrategy("normal");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -136,7 +150,21 @@ caps.setPageLoadStrategy("eager");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -193,6 +221,20 @@ caps.setPageLoadStrategy("none");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}
48 changes: 45 additions & 3 deletions docs_source_files/content/webdriver/page_loading_strategy.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,21 @@ caps.setPageLoadStrategy("normal");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -136,7 +150,21 @@ caps.setPageLoadStrategy("eager");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -193,6 +221,20 @@ caps.setPageLoadStrategy("none");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}
48 changes: 45 additions & 3 deletions docs_source_files/content/webdriver/page_loading_strategy.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,21 @@ caps.setPageLoadStrategy("normal");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NORMAL)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -135,7 +149,21 @@ caps.setPageLoadStrategy("eager");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.EAGER)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}

Expand Down Expand Up @@ -192,6 +220,20 @@ caps.setPageLoadStrategy("none");
})();
{{< / code-panel >}}
{{< code-panel language="kotlin" >}}
// Please raise a PR
import org.openqa.selenium.PageLoadStrategy
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions

fun main() {
val chromeOptions = ChromeOptions()
chromeOptions.setPageLoadStrategy(PageLoadStrategy.NONE)
val driver = ChromeDriver(chromeOptions)
try {
driver.get("https://www.google.com")
}
finally {
driver.quit()
}
}
{{< / code-panel >}}
{{< / code-tab >}}
Loading