automated-tests

How to write a loop while in Robot Framework

前提是你 提交于 2020-06-10 03:32:56
问题 I make my first simple test case, and I have one problem. Is it possible write a loop in Robot Framework? I want to retrieve the value from the address and the address of the modified variable "i". I want to perform until such an address exists, because it is a row in the table. ${f1} A ${f_temp} B While ${f1} != ${f_temp} or While element xpath=//${i} is visible \ ${F_temp} Get Text xpath=//${i} \ ${i} ${i}+1 \ Run Keyword And Continue On Failure Should be equal ${f_temp} ${f1} Any ideas?

javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite

大憨熊 提交于 2020-05-30 08:07:30
问题 I recently updated my chrome version to latest i.e. 79.0.3945.130 (Official Build) (64-bit) and downloaded compatible chromedriver from here I've started facing this error. While debugging in detail i found that the Select class causing the issue. wherever I'm selecting a dropdown in my code I'm getting this issue. The HTML of dropdown looks like below snippet: <div class="rd-input--wrapper" id="178"> <label for="attribute178">Flavour</label> <select name="super_attribute[178]" data-selector=

ObjChildItem.Click() not working properly in a loop

可紊 提交于 2020-05-16 22:01:43
问题 I am using UFT One to test a Salesforce Contacts table with two rows that have clickable links, "Jim Bean" and "Marsha Smith". (see attached image). I want to loop through the rows and click on the links and have "ValidateContactProperties" Action get called for each Contact Details page that comes up. The following code works but ObjChildItem.Click() gets executed only the first time. Only Jim Bean's contact profile page is displayed, not Marsha Smith's. For i = 2 to rowCount Set

ObjChildItem.Click() not working properly in a loop

岁酱吖の 提交于 2020-05-16 22:01:36
问题 I am using UFT One to test a Salesforce Contacts table with two rows that have clickable links, "Jim Bean" and "Marsha Smith". (see attached image). I want to loop through the rows and click on the links and have "ValidateContactProperties" Action get called for each Contact Details page that comes up. The following code works but ObjChildItem.Click() gets executed only the first time. Only Jim Bean's contact profile page is displayed, not Marsha Smith's. For i = 2 to rowCount Set

How to check if some text is present on a web page using selenium 2?

自闭症网瘾萝莉.ら 提交于 2020-05-10 04:04:02
问题 Hi I am using selenium to automate test on web pages. I am using selenium 2 and python and would like to have answers in this framework only. SO how do I check whether some text is present or not? I have tried asset equals but it is not working? assertEquals(driver.getPageSource().contains("email"), true); 回答1: You can use driver.page_source and a simple regular expression to check if the text exists: import re src = driver.page_source text_found = re.search(r'text_to_search', src) self

How to check if some text is present on a web page using selenium 2?

↘锁芯ラ 提交于 2020-05-10 03:58:45
问题 Hi I am using selenium to automate test on web pages. I am using selenium 2 and python and would like to have answers in this framework only. SO how do I check whether some text is present or not? I have tried asset equals but it is not working? assertEquals(driver.getPageSource().contains("email"), true); 回答1: You can use driver.page_source and a simple regular expression to check if the text exists: import re src = driver.page_source text_found = re.search(r'text_to_search', src) self

Karate: Is there a http-request hook in karate, that gets called automatically after every API call, and whose behaviour I can modify?

自古美人都是妖i 提交于 2020-05-05 14:27:47
问题 I want a common implementation to write the: request-body, request-method & response-body to an output file for all the HTTP requests that I make in any of the karate feature files. I have read through the documentation, and the closest option that I found was the afterScenario hook. However this doesn't help me in cases where I want to make multiple API calls in the same scenario. I also tried using karate.prevRequest object by passing it to java function that I wrote. While this helps me

Karate: Is there a http-request hook in karate, that gets called automatically after every API call, and whose behaviour I can modify?

一曲冷凌霜 提交于 2020-05-05 14:27:08
问题 I want a common implementation to write the: request-body, request-method & response-body to an output file for all the HTTP requests that I make in any of the karate feature files. I have read through the documentation, and the closest option that I found was the afterScenario hook. However this doesn't help me in cases where I want to make multiple API calls in the same scenario. I also tried using karate.prevRequest object by passing it to java function that I wrote. While this helps me

How can I count and select some rows in a Web table using Selenium?

假装没事ソ 提交于 2020-04-30 09:08:26
问题 I'm developing an Automation test using Selenium WebDriver and Java, I need to assured that there are items in the web table, and select one of those items, but the ID is dynamic. HTML code: <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0" style="table-layout: auto;"> <tbody> <tr id="datagrid-row-r4-2-0" datagrid-row-index="0" class="datagrid-row datagrid-row-selected"> <td field="PLANT_CODE" style="display:none;"> <div style="text-align: left;" class="datagrid-cell

Getting Header overflow error while using testcafe

随声附和 提交于 2020-04-30 07:03:07
问题 Using testcafe for automated testing but i am getting the following error while perfoming a particular action(click of a button) Failed to perform a request to the resource at "https://www.example.com" because of an error. Error: Parse Error: Header overflow The application is working fine when we try to do the same action manually in the browser.But throws this error while doing it using testcafe. Tried using lower version of node also it doesn't help.can someone help with this? 来源: https:/