Other Functions¶
You can use basic functions which selenium provides with this library like opening a url, get pagesource, get current url etc. These are the functions:-
Open¶
It will open the url provided in the argument.
-
google.
open
(url)¶ - Parameters
url (str) – Link which need to be opened
- Returns
{}
- Return type
dict
Get Page Title¶
It returns the title of page opened.
-
google.
get_page_title
()¶ - Returns
{“pagetitle”:”google”}
- Return type
dict
Get Page Source¶
It returns the pagesource of page opened.
-
google.
get_page_source
()¶ - Returns
{“pagesource”:”pagesource”}
- Return type
dict
Get Current Url¶
It returns the pagesource of page opened.
-
google.
get_current_url
()¶ - Returns
{“url”:”url”}
- Return type
dict
Keypress¶
It perform the keypress passed.
-
google.
keypress
(key)¶ - Parameters
key (str) – Key which need to be pressed, e.g pagedown,arrowleft,enter
- Returns
{}
- Return type
dict