selenium

Azure Function using Selenium WebDriver.dll

雨燕双飞 提交于 2021-02-07 08:34:09
问题 i am trying to use Selenium WebDriver.dll from Azure Function C# code and having following issue when instantiating WebDriver. Error: 2017-10-16T20:02:25.169 Exception while executing function: Functions.fnTestSelenium. Microsoft.Azure.WebJobs.Script: One or more errors occurred. mscorlib: The path is not of a legal form.2017-10-16T20:02:25.278 Function completed (Failure, Id=2fcb928f-ee39-4cfe-99f2-4be2d57e91b2, Duration=843ms) Code #r "D:\home\site\wwwroot\fnTestSelenium\bin\WebDriver.dll"

Python, Selenium find element with class and wait for class change

淺唱寂寞╮ 提交于 2021-02-07 07:26:45
问题 I have a web page which loads content dynamically and while page loads, there is spinning wheel, I already found solution to grab content loaded immediately on page, but seems i can't find solution to grab content loaded later in dom. What i can think of is to find element with specific class of that wheel spinning, and wait for it to change, once it's changed, than it means content is loaded in dom. I am using Selenium with Firefox webdriver on Ubuntu . Here is the class i am looking to

Difference between element(…) and element(…).getWebElement() in Protractor

六月ゝ 毕业季﹏ 提交于 2021-02-07 06:14:01
问题 Why we need element(...).getWebElement() over element(...) when both works exactly the same Why two APIs for the same functionality 回答1: Protractor is a convenient wrapper around WebDriverJS - javascript selenium bindings. element(...) would result into an ElementFinder instance introduced in Protractor element(...).getWebElement() would result into a WebElement instance from WebDriverJS . Basically, this gives you access to the pure "bare-metal" WebElement . The most common use-case for

Difference between element(…) and element(…).getWebElement() in Protractor

风流意气都作罢 提交于 2021-02-07 06:13:52
问题 Why we need element(...).getWebElement() over element(...) when both works exactly the same Why two APIs for the same functionality 回答1: Protractor is a convenient wrapper around WebDriverJS - javascript selenium bindings. element(...) would result into an ElementFinder instance introduced in Protractor element(...).getWebElement() would result into a WebElement instance from WebDriverJS . Basically, this gives you access to the pure "bare-metal" WebElement . The most common use-case for

Difference between element(…) and element(…).getWebElement() in Protractor

断了今生、忘了曾经 提交于 2021-02-07 06:13:08
问题 Why we need element(...).getWebElement() over element(...) when both works exactly the same Why two APIs for the same functionality 回答1: Protractor is a convenient wrapper around WebDriverJS - javascript selenium bindings. element(...) would result into an ElementFinder instance introduced in Protractor element(...).getWebElement() would result into a WebElement instance from WebDriverJS . Basically, this gives you access to the pure "bare-metal" WebElement . The most common use-case for

Difference between element(…) and element(…).getWebElement() in Protractor

这一生的挚爱 提交于 2021-02-07 06:13:01
问题 Why we need element(...).getWebElement() over element(...) when both works exactly the same Why two APIs for the same functionality 回答1: Protractor is a convenient wrapper around WebDriverJS - javascript selenium bindings. element(...) would result into an ElementFinder instance introduced in Protractor element(...).getWebElement() would result into a WebElement instance from WebDriverJS . Basically, this gives you access to the pure "bare-metal" WebElement . The most common use-case for

How to click on a Particular email from gmail inbox in Selenium?

我们两清 提交于 2021-02-07 04:40:25
问题 I hv to click on a particular email, in that case what should I do? I seen there is a Webtable with multiple indexes, I hv to select 1 & click on it. does anyone have code how to handle webTables in WebDriver? See exact situation in below screen- http://screencast.com/t/XRbXQVygNkN6 I was trying with below code -Plz suggest me for rest of the action. After gmail Login- 1st Ihv clicked on inbox link--->>then Promotions--->>then I hv to click on particular email WebElement PromotionsSection

How to click on a button with Selenium?

▼魔方 西西 提交于 2021-02-07 04:31:24
问题 I am trying to use the Python Selenium API in order to click on a button. The HTML code is as follows: <button class="btn wizard-next btn-primary" type="button">Weiter</button> How to best identify this element? I was trying the following code driver.find_element_by_class_name("btn wizard-next btn-primary").click() but got an error selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: Compound class names not permitted What else can I do to select this element? 回答1:

Python Selenium Loop Through Links

梦想的初衷 提交于 2021-02-07 04:16:35
问题 Im new to python, or coding for that matter... This part of the code allows me to find all the elements that I want to click (click on the link open a new tab) from selenium import webdriver import time driver = webdriver.Chrome() driver.get("http://www.rezultati.com/kosarka/filipini/kup/") list_of_links = driver.find_elements_by_css_selector(".cell_ad.time") for link in list_of_links: link.click() Obviously this for loop only opens links.. I'm interested in how to add, somethin like this, to

Python Selenium Loop Through Links

人盡茶涼 提交于 2021-02-07 04:15:17
问题 Im new to python, or coding for that matter... This part of the code allows me to find all the elements that I want to click (click on the link open a new tab) from selenium import webdriver import time driver = webdriver.Chrome() driver.get("http://www.rezultati.com/kosarka/filipini/kup/") list_of_links = driver.find_elements_by_css_selector(".cell_ad.time") for link in list_of_links: link.click() Obviously this for loop only opens links.. I'm interested in how to add, somethin like this, to