logs:
Organization flow Successfull case Organization should be created successfully.
Failure/Error: find('#submit_requirements_crawl_type_1', visible: false).click
Selenium::WebDriver::Error::ElementNotVisibleError:
element not interactable
(Session info: headless chrome=72.0.3626.119)
(Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),platform=Linux 4.9.0-7-amd64 x86_64)
I tried maximum examples that were present in stack overflow and couple of other sites.
Few code samples:
find(:xpath, "//label[@for='submit_requirements_crawl_type_1']").click
find(:xpath, "//label[@for='submit_requirements_output_format_0']").click
find('#submit_requirements_crawl_type_1', visible: false).click
find('#submit_requirements_output_format_0', visible: false).click
find('label', text: "submit_requirements_crawl_type_2").click
find('label', text: "submit_requirements_output_format_0").click
choose('Full Crawl', :visible => true)
choose('JSON', :visible => true)
<div class="radio radio-info radio-inline">
<input type="radio" value="1" name="submit_requirements[crawl_type]" id="submit_requirements_crawl_type_1">
<label for="submit_requirements_crawl_type_1">Full Crawl</label>
</div>
Note:
It working fine in development environment with both headless and head chrome webdriver