selenium-webdriver

Selenium (Python) >> selenium.common.exceptions.NoSuchFrameException:

我的梦境 提交于 2020-04-17 21:33:52
问题 I've been trying to enter to an iframe and write text in a search bar ( tag) in Safari: I can't post the html because it's huge and it isn't mine but this is the iframe code: <iframe frameborder="0" id="contentIFrame0" name="contentIFrame0" title="Área de contenido" style="border: 0px none; overflow: hidden; position: absolute; left: 0px; right: 0px; height: 100%; width: 100%; visibility: visible; display: block;"> (...Content of the iframe...) </iframe> Here is python code: wait.until(ec

Selenium (Python) >> selenium.common.exceptions.NoSuchFrameException:

风格不统一 提交于 2020-04-17 21:32:05
问题 I've been trying to enter to an iframe and write text in a search bar ( tag) in Safari: I can't post the html because it's huge and it isn't mine but this is the iframe code: <iframe frameborder="0" id="contentIFrame0" name="contentIFrame0" title="Área de contenido" style="border: 0px none; overflow: hidden; position: absolute; left: 0px; right: 0px; height: 100%; width: 100%; visibility: visible; display: block;"> (...Content of the iframe...) </iframe> Here is python code: wait.until(ec

Selenium (Python) >> selenium.common.exceptions.NoSuchFrameException:

依然范特西╮ 提交于 2020-04-17 21:31:09
问题 I've been trying to enter to an iframe and write text in a search bar ( tag) in Safari: I can't post the html because it's huge and it isn't mine but this is the iframe code: <iframe frameborder="0" id="contentIFrame0" name="contentIFrame0" title="Área de contenido" style="border: 0px none; overflow: hidden; position: absolute; left: 0px; right: 0px; height: 100%; width: 100%; visibility: visible; display: block;"> (...Content of the iframe...) </iframe> Here is python code: wait.until(ec

Selenium Webdriver tests always fail on Azure DevOps but work perfectly on dev machine

筅森魡賤 提交于 2020-04-17 17:59:52
问题 Using a .net core 3.1 XUnit test project and the C# bindings for the Selenium WebDriver API, my tests succeed when I run them locally on my development machine but always fail when run in an Azure DevOps release pipeline. Here is the Yaml definition for the test task steps: - task: VSTest@2 displayName: 'VsTest - testAssemblies' inputs: testAssemblyVer2: '**\--REDACTED--.dll' uiTests: true runInParallel: false rerunFailedTests: true I have followed the microsoft guidelines and activated

Selenium Webdriver tests always fail on Azure DevOps but work perfectly on dev machine

这一生的挚爱 提交于 2020-04-17 17:54:23
问题 Using a .net core 3.1 XUnit test project and the C# bindings for the Selenium WebDriver API, my tests succeed when I run them locally on my development machine but always fail when run in an Azure DevOps release pipeline. Here is the Yaml definition for the test task steps: - task: VSTest@2 displayName: 'VsTest - testAssemblies' inputs: testAssemblyVer2: '**\--REDACTED--.dll' uiTests: true runInParallel: false rerunFailedTests: true I have followed the microsoft guidelines and activated

How to get text outside the div?

£可爱£侵袭症+ 提交于 2020-04-16 05:45:19
问题 <div class="amlocator-store-information" style="" xpath="1"> <div class="amlocator-title" style="">The Better Health Store</div> 2420 E-Stadium Ann Arbor MI 48104 <br><br> (613) 975-6613 <div style="" class="amasty_distance" id="amasty_distance_1">Distance: <span class="amasty_distance_number"></span> </div> </div> I am using selenium with python and trying to get the address from the DOM but I can't, I have used store_block_list = '//div[@class="amlocator-store-information"]' store_block

How to get text outside the div?

生来就可爱ヽ(ⅴ<●) 提交于 2020-04-16 05:45:10
问题 <div class="amlocator-store-information" style="" xpath="1"> <div class="amlocator-title" style="">The Better Health Store</div> 2420 E-Stadium Ann Arbor MI 48104 <br><br> (613) 975-6613 <div style="" class="amasty_distance" id="amasty_distance_1">Distance: <span class="amasty_distance_number"></span> </div> </div> I am using selenium with python and trying to get the address from the DOM but I can't, I have used store_block_list = '//div[@class="amlocator-store-information"]' store_block

Selenium Webdriver switchTo() method fails in Chrome 75

若如初见. 提交于 2020-04-16 05:06:03
问题 Switching to an open tab with Selenium works fine in Chrome 74. However, in 75 I get this message: org.openqa.selenium.InvalidArgumentException: invalid argument: 'handle' must be a string Does anyone else encounter this and how can this be solved except for pinning the Chrome version to 74? 回答1: I was able to resolve the error by adding the below browserstack specific capability in my tests- 'browserstack.use_w3c' : 'true' 来源: https://stackoverflow.com/questions/56538895/selenium-webdriver

Web driver skips special characters - “(” and “&” characters when using sendkeys

天大地大妈咪最大 提交于 2020-04-16 04:56:28
问题 As part of my automated tests, I need to type a string with special characters ("(PT books)") into a text box on a web application. When I run the test, "(" is always skipped. There is no issue with ")" . I started investigating it and tried all special characters that require a shift key to be pressed ("~!@#$%^&*()_+{}|:<>?") and found that it always skipped "(" and "&" . I also tried the same test on the Google search box and in this case all characters were displayed. I am using Selenium

Web driver skips special characters - “(” and “&” characters when using sendkeys

 ̄綄美尐妖づ 提交于 2020-04-16 04:55:34
问题 As part of my automated tests, I need to type a string with special characters ("(PT books)") into a text box on a web application. When I run the test, "(" is always skipped. There is no issue with ")" . I started investigating it and tried all special characters that require a shift key to be pressed ("~!@#$%^&*()_+{}|:<>?") and found that it always skipped "(" and "&" . I also tried the same test on the Google search box and in this case all characters were displayed. I am using Selenium